summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture/bin/kvm.sh
diff options
context:
space:
mode:
authorPaul E. McKenney2016-03-29 19:50:38 +0200
committerPaul E. McKenney2016-03-31 22:39:53 +0200
commit480b1eb659f65be8ed039f1a9db3f762c41c9770 (patch)
tree734bd267a9aaef2400896ae22ede62d91a89ddcd /tools/testing/selftests/rcutorture/bin/kvm.sh
parenttorture: Kill qemu, not parent process (diff)
downloadkernel-qcow2-linux-480b1eb659f65be8ed039f1a9db3f762c41c9770.tar.gz
kernel-qcow2-linux-480b1eb659f65be8ed039f1a9db3f762c41c9770.tar.xz
kernel-qcow2-linux-480b1eb659f65be8ed039f1a9db3f762c41c9770.zip
rcutorture: Convert test duration to seconds early
This commit converts test duration from minutes to seconds early on in order to prepare for upcoming OS-jitter-injection changes. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin/kvm.sh')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/kvm.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh
index c33cb582b3dc..704e219f67a7 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm.sh
@@ -34,7 +34,7 @@ T=/tmp/kvm.sh.$$
trap 'rm -rf $T' 0
mkdir $T
-dur=30
+dur=$((30*60))
dryrun=""
KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM
PATH=${KVM}/bin:$PATH; export PATH
@@ -116,7 +116,7 @@ do
;;
--duration)
checkarg --duration "(minutes)" $# "$2" '^[0-9]*$' '^error'
- dur=$2
+ dur=$(($2*60))
shift
;;
--interactive)