mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 17:26:19 +07:00
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>
This commit is contained in:
parent
fb2c66af10
commit
480b1eb659
@ -6,7 +6,7 @@
|
|||||||
# Execute this in the source tree. Do not run it as a background task
|
# Execute this in the source tree. Do not run it as a background task
|
||||||
# because qemu does not seem to like that much.
|
# because qemu does not seem to like that much.
|
||||||
#
|
#
|
||||||
# Usage: kvm-test-1-run.sh config builddir resdir minutes qemu-args boot_args
|
# Usage: kvm-test-1-run.sh config builddir resdir seconds qemu-args boot_args
|
||||||
#
|
#
|
||||||
# qemu-args defaults to "-enable-kvm -soundhw pcspk -nographic", along with
|
# qemu-args defaults to "-enable-kvm -soundhw pcspk -nographic", along with
|
||||||
# arguments specifying the number of CPUs and other
|
# arguments specifying the number of CPUs and other
|
||||||
@ -123,8 +123,7 @@ while test -f $builddir.ready
|
|||||||
do
|
do
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
minutes=$4
|
seconds=$4
|
||||||
seconds=$(($minutes * 60))
|
|
||||||
qemu_args=$5
|
qemu_args=$5
|
||||||
boot_args=$6
|
boot_args=$6
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ T=/tmp/kvm.sh.$$
|
|||||||
trap 'rm -rf $T' 0
|
trap 'rm -rf $T' 0
|
||||||
mkdir $T
|
mkdir $T
|
||||||
|
|
||||||
dur=30
|
dur=$((30*60))
|
||||||
dryrun=""
|
dryrun=""
|
||||||
KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM
|
KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM
|
||||||
PATH=${KVM}/bin:$PATH; export PATH
|
PATH=${KVM}/bin:$PATH; export PATH
|
||||||
@ -116,7 +116,7 @@ do
|
|||||||
;;
|
;;
|
||||||
--duration)
|
--duration)
|
||||||
checkarg --duration "(minutes)" $# "$2" '^[0-9]*$' '^error'
|
checkarg --duration "(minutes)" $# "$2" '^[0-9]*$' '^error'
|
||||||
dur=$2
|
dur=$(($2*60))
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--interactive)
|
--interactive)
|
||||||
|
Loading…
Reference in New Issue
Block a user