Skip to contentSkip to conversation

boot-serial-test: use -no-shutdown

PATCH Applied Christian Borntraeger 3 participants 3 messages Mar 24, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 boot-serial-test: use -no-shutdown

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)
---
 tests/boot-serial-test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/boot-serial-test.c +2 -2
index 57edf6a..11f48b0 100644
@@ -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);
Signature · 1 line
2.7.4
#1 lore raw
Quoted 17 lines · Christian Borntraeger

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)
---
 tests/boot-serial-test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/boot-serial-test.c +0 -0
index 57edf6a..11f48b0 100644

tests/boot-serial-test.c static void test_machine(const void *data) · line 86

Quoted 10 lines
tests/boot-serial-test.c +2 -2
@@ -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);

Applied to master, thanks. Let's see if this fixes the travis flapping...

-- PMM

Tested-by Reviewed-by
#2 lore raw
Quoted 26 lines · Peter Maydell
Quoted 25 lines · Christian Borntraeger

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)
---
 tests/boot-serial-test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/boot-serial-test.c +2 -2
index 57edf6a..11f48b0 100644
@@ -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);
 
Quoted 4 lines

tests/boot-serial-test.c static void test_machine(const void *data) · line 86

Quoted 2 lines
tests/boot-serial-test.c +0 -0
     qtest_start(args);
     unlink(tmpname);

Applied to master, thanks. Let's see if this fixes the travis flapping...

A bit late as it is merged but I did test it on the reproduction case and ran 50 check-qtest-s390x while loading the system with a kernel compile. It previously failed after about 20 iterations. So:

--
Alex Bennée