]> git.proxmox.com Git - mirror_qemu.git/commitdiff
boot-serial-test: use -no-shutdown
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 24 Mar 2017 13:19:30 +0000 (14:19 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Mar 2017 13:39:50 +0000 (13:39 +0000)
a qemu with an empty s390 guest will exit very quickly. This races
against the testsuite reading from the console pipe leading to
intermittent test suite failures. Using -no-shutdown will keep
the guest running.

Fixes: 864111f422ba (vl: exit qemu on guest panic if -no-shutdown is not set)
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Message-id: 1490361570-288658-1-git-send-email-borntraeger@de.ibm.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
tests/boot-serial-test.c

index 57edf6af33087cb571b2104d5941b792c621cceb..11f48b049ccd2b75dc840b5b6275967cafd553e7 100644 (file)
@@ -79,8 +79,8 @@ static void test_machine(const void *data)
     g_assert(fd != -1);
 
     args = g_strdup_printf("-M %s,accel=tcg -chardev file,id=serial0,path=%s"
-                           " -serial chardev:serial0 %s", test->machine,
-                           tmpname, test->extra);
+                           " -no-shutdown -serial chardev:serial0 %s",
+                           test->machine, tmpname, test->extra);
 
     qtest_start(args);
     unlink(tmpname);