Commit 1dccc5a3 authored by Paul E. McKenney's avatar Paul E. McKenney

torture: Make kvm-recheck-scf.sh tolerate qemu-cmd comments

The qemu-cmd file can contain comments that are not relevant to the
operation of kvm-recheck-scf.sh.  This commit therefore strips these
comments before looking for timing information.
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 433cd5a3
...@@ -25,7 +25,7 @@ if test -z "$nscfs" ...@@ -25,7 +25,7 @@ if test -z "$nscfs"
then then
echo "$configfile ------- " echo "$configfile ------- "
else else
dur="`sed -e 's/^.* scftorture.shutdown_secs=//' -e 's/ .*$//' < $i/qemu-cmd 2> /dev/null`" dur="`grep -v '^#' $i/qemu-cmd | sed -e 's/^.* scftorture.shutdown_secs=//' -e 's/ .*$//' 2> /dev/null`"
if test -z "$dur" if test -z "$dur"
then then
rate="" rate=""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment