torture: Expand last_ts variable in kvm-test-1-run.sh
authorPaul E. McKenney <paulmck@linux.ibm.com>
Fri, 21 Jun 2019 17:32:57 +0000 (10:32 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Thu, 1 Aug 2019 21:30:22 +0000 (14:30 -0700)
The kvm-test-1-run.sh script says 'test -z "last_ts"' which always
evaluates to true (AKA zero) regardless of the value of the last_ts shell
variable.  This commit therefore inserts the needed dollar sign ("$").

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh

index 27b7b5693ede64f4d8234001c5486b88c240029f..33c669619736449e7b0d0983cea60b69eff6e4a1 100755 (executable)
@@ -227,7 +227,7 @@ then
                        must_continue=yes
                fi
                last_ts="`tail $resdir/console.log | grep '^\[ *[0-9]\+\.[0-9]\+]' | tail -1 | sed -e 's/^\[ *//' -e 's/\..*$//'`"
-               if test -z "last_ts"
+               if test -z "$last_ts"
                then
                        last_ts=0
                fi