summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2023-01-13 21:23:46 -0800
committerBoqun Feng <boqun.feng@gmail.com>2023-03-11 18:11:08 -0800
commit995495846f7403cd871b22b03b40bd7e24be07a3 (patch)
treee297a988cb6d5fd8528dcc4ede72af7ad887da88
parent236bdb881d9656194a2d9c78ee11dba39329a3b1 (diff)
downloadlinux-stable-995495846f7403cd871b22b03b40bd7e24be07a3.tar.gz
linux-stable-995495846f7403cd871b22b03b40bd7e24be07a3.tar.bz2
linux-stable-995495846f7403cd871b22b03b40bd7e24be07a3.zip
torture: Permit kvm-again.sh --duration to default to previous run
Currently, invoking kvm-again.sh without a --duration argument results in a bash error message. This commit therefore adds quotes around the $dur argument to kvm-transform.sh to allow a default duration to be taken from the earlier run. Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/kvm-again.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-again.sh b/tools/testing/selftests/rcutorture/bin/kvm-again.sh
index 8a968fbda02c..88ca4e368489 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm-again.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm-again.sh
@@ -193,7 +193,7 @@ do
qemu_cmd_dir="`dirname "$i"`"
kernel_dir="`echo $qemu_cmd_dir | sed -e 's/\.[0-9]\+$//'`"
jitter_dir="`dirname "$kernel_dir"`"
- kvm-transform.sh "$kernel_dir/bzImage" "$qemu_cmd_dir/console.log" "$jitter_dir" $dur "$bootargs" < $T/qemu-cmd > $i
+ kvm-transform.sh "$kernel_dir/bzImage" "$qemu_cmd_dir/console.log" "$jitter_dir" "$dur" "$bootargs" < $T/qemu-cmd > $i
if test -n "$arg_remote"
then
echo "# TORTURE_KCONFIG_GDB_ARG=''" >> $i