Skip to contentSkip to conversation

Block patches

GIT PULL Stefan Hajnoczi 1 participant 2 messages Nov 19, 2013

lore
Share & tools
lore
#0 lore raw

Fix for block qtest buildbot failure from Andreas.

The following changes since commit 06d22aa36706a3d6051b74c8a183ab554a0cb808:

block: Fail if requested driver is not available (2013-11-15 13:37:48 +0100)

are available in the git repository at:

git://github.com/stefanha/qemu.git block

for you to fetch changes up to 2ad645d2854746b55ddfd1d8e951f689cca5d78f:

qtest: Use -display none by default (2013-11-19 10:28:14 +0100)

----------------------------------------------------------------
Andreas Färber (1):
qtest: Use -display none by default

 tests/boot-order-test.c | 2 +-
 tests/endianness-test.c | 6 +++---
 tests/fw_cfg-test.c     | 3 +--
 tests/hd-geo-test.c     | 2 +-
 tests/i440fx-test.c     | 2 +-
 tests/libqtest.c        | 1 +
 tests/m48t59-test.c     | 2 +-
 tests/qom-test.c        | 2 +-
 tests/rtc-test.c        | 2 +-
 tests/tmp105-test.c     | 2 +-
 10 files changed, 12 insertions(+), 12 deletions(-)
Signature · 1 line
1.8.4.2
#1 lore raw

[Qemu-devel] [PULL for-1.7 1/1] qtest: Use -display none by default

From: Andreas Färber <[email protected]>

This avoids each test needing to add it to suppress windows popping up.

[Commit 7ceeedd016facf8d58e14a0d1417fa7225d71072 ("blockdev-test: add test case for drive_add duplicate IDs") and commit 43cd209803d6cffb1e1a028c9ff2fd0ff4fce954 ("qdev-monitor-test: add device_add leak test cases") added qtest tests without specifying -display none.

As a result, "make check" now tries to use graphics (GTK or SDL). Since graphics are not used by the test and inappropriate for headless "make check" runs, add the missing -display none.

This fixes "make check" in the QEMU buildbot.
-- Stefan]

---
 tests/boot-order-test.c | 2 +-
 tests/endianness-test.c | 6 +++---
 tests/fw_cfg-test.c     | 3 +--
 tests/hd-geo-test.c     | 2 +-
 tests/i440fx-test.c     | 2 +-
 tests/libqtest.c        | 1 +
 tests/m48t59-test.c     | 2 +-
 tests/qom-test.c        | 2 +-
 tests/rtc-test.c        | 2 +-
 tests/tmp105-test.c     | 2 +-
 10 files changed, 12 insertions(+), 12 deletions(-)
tests/boot-order-test.c +1 -1
index da158c3..360a691 100644
@@ -34,7 +34,7 @@ static void test_a_boot_order(const char *machine,
     char *args;
     uint64_t actual;
 
-    args = g_strdup_printf("-nodefaults -display none%s%s %s",
+    args = g_strdup_printf("-nodefaults%s%s %s",
                            machine ? " -M " : "",
                            machine ?: "",
                            test_args);
tests/endianness-test.c +3 -3
index 8719c09..646df7d 100644
@@ -121,7 +121,7 @@ static void test_endianness(gconstpointer data)
     const TestCase *test = data;
     char *args;
 
-    args = g_strdup_printf("-display none -M %s%s%s -device pc-testdev",
+    args = g_strdup_printf("-M %s%s%s -device pc-testdev",
                            test->machine,
                            test->superio ? " -device " : "",
                            test->superio ?: "");
@@ -196,7 +196,7 @@ static void test_endianness_split(gconstpointer data)
     const TestCase *test = data;
     char *args;
 
-    args = g_strdup_printf("-display none -M %s%s%s -device pc-testdev",
+    args = g_strdup_printf("-M %s%s%s -device pc-testdev",
                            test->machine,
                            test->superio ? " -device " : "",
                            test->superio ?: "");
@@ -243,7 +243,7 @@ static void test_endianness_combine(gconstpointer data)
     const TestCase *test = data;
     char *args;
 
-    args = g_strdup_printf("-display none -M %s%s%s -device pc-testdev",
+    args = g_strdup_printf("-M %s%s%s -device pc-testdev",
                            test->machine,
                            test->superio ? " -device " : "",
                            test->superio ?: "");
tests/fw_cfg-test.c +1 -2
index b86e49a..e4f355c 100644
@@ -126,8 +126,7 @@ int main(int argc, char **argv)
     g_test_add_func("/fw_cfg/numa", test_fw_cfg_numa);
     g_test_add_func("/fw_cfg/boot_menu", test_fw_cfg_boot_menu);
 
-    cmdline = g_strdup_printf("-display none "
-                              "-uuid 4600cb32-38ec-4b2f-8acb-81c6ea54f2d8 ");
+    cmdline = g_strdup_printf("-uuid 4600cb32-38ec-4b2f-8acb-81c6ea54f2d8 ");
     s = qtest_start(cmdline);
     g_free(cmdline);
 
tests/hd-geo-test.c +1 -1
index b72042e..c84d1e7 100644
@@ -171,7 +171,7 @@ static int setup_common(char *argv[], int argv_sz)
 {
     memset(cur_ide, 0, sizeof(cur_ide));
     return append_arg(0, argv, argv_sz,
-                      g_strdup("-nodefaults -display none"));
+                      g_strdup("-nodefaults"));
 }
 
 static void setup_mbr(int img_idx, MBRcontents mbr)
tests/i440fx-test.c +1 -1
index 08ce820..65c786c 100644
@@ -265,7 +265,7 @@ int main(int argc, char **argv)
 
     data.num_cpus = 1;
 
-    cmdline = g_strdup_printf("-display none -smp %d", data.num_cpus);
+    cmdline = g_strdup_printf("-smp %d", data.num_cpus);
     s = qtest_start(cmdline);
     g_free(cmdline);
 
tests/libqtest.c +1 -0
index 83424c3..359d571 100644
@@ -135,6 +135,7 @@ QTestState *qtest_init(const char *extra_args)
                                   "-qmp unix:%s,nowait "
                                   "-pidfile %s "
                                   "-machine accel=qtest "
+                                  "-display none "
                                   "%s", qemu_binary, s->socket_path,
                                   s->qmp_socket_path, pid_file,
                                   extra_args ?: "");
tests/m48t59-test.c +1 -1
index 4081a5f..6abc4c8 100644
@@ -249,7 +249,7 @@ int main(int argc, char **argv)
 
     g_test_init(&argc, &argv, NULL);
 
-    s = qtest_start("-display none -rtc clock=vm");
+    s = qtest_start("-rtc clock=vm");
 
     qtest_add_func("/rtc/bcd/check-time", bcd_check_time);
     qtest_add_func("/rtc/fuzz-registers", fuzz_registers);
tests/qom-test.c +1 -1
index 6ed23c5..499be40 100644
@@ -18,7 +18,7 @@ static void test_nop(gconstpointer data)
     const char *machine = data;
     char *args;
 
-    args = g_strdup_printf("-display none -machine %s", machine);
+    args = g_strdup_printf("-machine %s", machine);
     s = qtest_start(args);
     if (s) {
         qtest_quit(s);
tests/rtc-test.c +1 -1
index 3395d7f..f1b123f 100644
@@ -552,7 +552,7 @@ int main(int argc, char **argv)
 
     g_test_init(&argc, &argv, NULL);
 
-    s = qtest_start("-display none -rtc clock=vm");
+    s = qtest_start("-rtc clock=vm");
     qtest_irq_intercept_in(s, "ioapic");
 
     qtest_add_func("/rtc/check-time/bcd", bcd_check_time);
tests/tmp105-test.c +1 -1
index fecd6dc..5ac48e2 100644
@@ -59,7 +59,7 @@ int main(int argc, char **argv)
 
     g_test_init(&argc, &argv, NULL);
 
-    s = qtest_start("-display none -machine n800");
+    s = qtest_start("-machine n800");
     i2c = omap_i2c_create(OMAP2_I2C_1_BASE);
     addr = N8X0_ADDR;
 
Signature · 1 line
1.8.4.2