diff options
author | Amit Shah <amit.shah@redhat.com> | 2010-04-22 19:06:05 +0530 |
---|---|---|
committer | Amit Shah <amit.shah@redhat.com> | 2010-04-22 19:10:57 +0530 |
commit | a2307cfe4f44a114739f6d97b44d7257e8a74a46 (patch) | |
tree | e1f0b9c53b4739c997d19e5c63a5a46ea3ef8f89 | |
parent | 274a19722c8262fe078398357006973e09f4e33f (diff) | |
download | test-virtserial-a2307cfe4f44a114739f6d97b44d7257e8a74a46.tar.gz test-virtserial-a2307cfe4f44a114739f6d97b44d7257e8a74a46.tar.xz test-virtserial-a2307cfe4f44a114739f6d97b44d7257e8a74a46.zip |
run-test: Sleep for a while after sending kill instructions for qemu/auto-virtserial
We removed the sleep a couple of commits earlier but it's needed to
ensure we really kill off any stuck qemu/auto-virtserial processes
before we start another test.
Without the sleep, a new qemu process could be spawned before the kill
signal was sent to the older process.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
-rwxr-xr-x | run-test.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/run-test.sh b/run-test.sh index 8bcfa51..97e594f 100755 --- a/run-test.sh +++ b/run-test.sh @@ -52,6 +52,11 @@ function do_test { pkill -9 auto-virtserial kill_qemu + # Let prev. instance of qemu be killed, if any. Without this + # sleep, the prev. qemu / auto-virtserial instance could be killed + # after we start our next test, which is a bad thing. + sleep 5; + echo $QEMU $QEMU_OPTS $QEMU $QEMU_OPTS & qemu_pid=$! |