Commit 5f33809e authored by Paul E. McKenney's avatar Paul E. McKenney

torture: Add timestamps to kvm-test-1-run-qemu.sh output

The kvm-test-1-run-qemu.sh script logs the torture-test start time and
also when it starts getting impatient for the test to finish.  However, it
does not timestamp these log messages, which can make debugging needlessly
challenging.  This commit therefore adds timestamps to these messages.
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent b3bf9632
...@@ -63,10 +63,10 @@ then ...@@ -63,10 +63,10 @@ then
if test -s "$resdir/qemu-pid" if test -s "$resdir/qemu-pid"
then then
qemu_pid=`cat "$resdir/qemu-pid"` qemu_pid=`cat "$resdir/qemu-pid"`
echo Monitoring qemu job at pid $qemu_pid echo Monitoring qemu job at pid $qemu_pid `date`
else else
qemu_pid="" qemu_pid=""
echo Monitoring qemu job at yet-as-unknown pid echo Monitoring qemu job at yet-as-unknown pid `date`
fi fi
fi fi
if test -n "$TORTURE_KCONFIG_GDB_ARG" if test -n "$TORTURE_KCONFIG_GDB_ARG"
...@@ -130,14 +130,14 @@ if test $commandcompleted -eq 0 && test -n "$qemu_pid" ...@@ -130,14 +130,14 @@ if test $commandcompleted -eq 0 && test -n "$qemu_pid"
then then
if ! test -f "$resdir/../STOP.1" if ! test -f "$resdir/../STOP.1"
then then
echo Grace period for qemu job at pid $qemu_pid echo Grace period for qemu job at pid $qemu_pid `date`
fi fi
oldline="`tail $resdir/console.log`" oldline="`tail $resdir/console.log`"
while : while :
do do
if test -f "$resdir/../STOP.1" if test -f "$resdir/../STOP.1"
then then
echo "PID $qemu_pid killed due to run STOP.1 request" >> $resdir/Warnings 2>&1 echo "PID $qemu_pid killed due to run STOP.1 request `date`" >> $resdir/Warnings 2>&1
kill -KILL $qemu_pid kill -KILL $qemu_pid
break break
fi fi
...@@ -165,7 +165,7 @@ then ...@@ -165,7 +165,7 @@ then
fi fi
if test $must_continue = no && test $kruntime -ge $((seconds + $TORTURE_SHUTDOWN_GRACE)) if test $must_continue = no && test $kruntime -ge $((seconds + $TORTURE_SHUTDOWN_GRACE))
then then
echo "!!! PID $qemu_pid hung at $kruntime vs. $seconds seconds" >> $resdir/Warnings 2>&1 echo "!!! PID $qemu_pid hung at $kruntime vs. $seconds seconds `date`" >> $resdir/Warnings 2>&1
kill -KILL $qemu_pid kill -KILL $qemu_pid
break break
fi fi
......
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