diff options
Diffstat (limited to 'tools/testing')
| -rwxr-xr-x | tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh index 86e6ffe6df45..cfa97e1ad8dc 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh | |||
| @@ -157,7 +157,7 @@ then | |||
| 157 | echo Build-only run specified, boot/test omitted. | 157 | echo Build-only run specified, boot/test omitted. |
| 158 | exit 0 | 158 | exit 0 |
| 159 | fi | 159 | fi |
| 160 | $QEMU $qemu_args -m 512 -kernel $builddir/arch/x86/boot/bzImage -append "$qemu_append $boot_args" & | 160 | ( $QEMU $qemu_args -m 512 -kernel $builddir/arch/x86/boot/bzImage -append "$qemu_append $boot_args"; echo $? > $resdir/qemu-retval ) & |
| 161 | qemu_pid=$! | 161 | qemu_pid=$! |
| 162 | commandcompleted=0 | 162 | commandcompleted=0 |
| 163 | echo Monitoring qemu job at pid $qemu_pid | 163 | echo Monitoring qemu job at pid $qemu_pid |
| @@ -172,6 +172,13 @@ do | |||
| 172 | if test $kruntime -lt $seconds | 172 | if test $kruntime -lt $seconds |
| 173 | then | 173 | then |
| 174 | echo Completed in $kruntime vs. $seconds >> $resdir/Warnings 2>&1 | 174 | echo Completed in $kruntime vs. $seconds >> $resdir/Warnings 2>&1 |
| 175 | grep "^(qemu) qemu:" $resdir/kvm-test-1-run.sh.out >> $resdir/Warnings 2>&1 | ||
| 176 | killpid="`sed -n "s/^(qemu) qemu: terminating on signal [0-9]* from pid \([0-9]*\).*$/\1/p" $resdir/Warnings`" | ||
| 177 | if test -n "$killpid" | ||
| 178 | then | ||
| 179 | echo "ps -fp $killpid" >> $resdir/Warnings 2>&1 | ||
| 180 | ps -fp $killpid >> $resdir/Warnings 2>&1 | ||
| 181 | fi | ||
| 175 | else | 182 | else |
| 176 | echo ' ---' `date`: Kernel done | 183 | echo ' ---' `date`: Kernel done |
| 177 | fi | 184 | fi |
