summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrun-test.sh5
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=$!