cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
0a122b
From 3f51f5d57b5a4c5de484db56175c58e1825d6aa9 Mon Sep 17 00:00:00 2001
0a122b
Message-Id: <3f51f5d57b5a4c5de484db56175c58e1825d6aa9.1387288155.git.minovotn@redhat.com>
0a122b
In-Reply-To: <527da6c2ce2c09d0183aa8595fc95f136f61b6df.1387288155.git.minovotn@redhat.com>
0a122b
References: <527da6c2ce2c09d0183aa8595fc95f136f61b6df.1387288155.git.minovotn@redhat.com>
0a122b
From: Stefan Hajnoczi <stefanha@redhat.com>
0a122b
Date: Thu, 12 Dec 2013 16:21:28 +0100
0a122b
Subject: [PATCH 8/8] qtest: Use -display none by default
0a122b
MIME-Version: 1.0
0a122b
Content-Type: text/plain; charset=UTF-8
0a122b
Content-Transfer-Encoding: 8bit
0a122b
0a122b
RH-Author: Stefan Hajnoczi <stefanha@redhat.com>
0a122b
Message-id: <1386865288-1575-9-git-send-email-stefanha@redhat.com>
0a122b
Patchwork-id: 56262
0a122b
O-Subject: [RHEL7 qemu-kvm PATCH 8/8] qtest: Use -display none by default
0a122b
Bugzilla: 1003773
0a122b
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
0a122b
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
0a122b
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
0a122b
0a122b
From: Andreas Färber <afaerber@suse.de>
0a122b
0a122b
This avoids each test needing to add it to suppress windows popping up.
0a122b
0a122b
[Commit 7ceeedd016facf8d58e14a0d1417fa7225d71072 ("blockdev-test: add
0a122b
test case for drive_add duplicate IDs") and commit
0a122b
43cd209803d6cffb1e1a028c9ff2fd0ff4fce954 ("qdev-monitor-test: add
0a122b
device_add leak test cases") added qtest tests without specifying
0a122b
-display none.
0a122b
0a122b
As a result, "make check" now tries to use graphics (GTK or SDL).  Since
0a122b
graphics are not used by the test and inappropriate for headless "make
0a122b
check" runs, add the missing -display none.
0a122b
0a122b
This fixes "make check" in the QEMU buildbot.
0a122b
-- Stefan]
0a122b
0a122b
Signed-off-by: Andreas Färber <afaerber@suse.de>
0a122b
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
0a122b
(cherry picked from commit 2ad645d2854746b55ddfd1d8e951f689cca5d78f)
0a122b
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
0a122b
0a122b
Conflicts:
0a122b
	tests/boot-order-test.c
0a122b
	tests/endianness-test.c
0a122b
	tests/qom-test.c
0a122b
0a122b
qom-test.c and endianness-test.c do not exist in RHEL.
0a122b
0a122b
boot-order-test.c is slightly older but the conflict is simple to
0a122b
resolve.
0a122b
---
0a122b
 tests/boot-order-test.c | 2 +-
0a122b
 tests/fw_cfg-test.c     | 3 +--
0a122b
 tests/hd-geo-test.c     | 2 +-
0a122b
 tests/i440fx-test.c     | 2 +-
0a122b
 tests/libqtest.c        | 1 +
0a122b
 tests/m48t59-test.c     | 2 +-
0a122b
 tests/rtc-test.c        | 2 +-
0a122b
 tests/tmp105-test.c     | 2 +-
0a122b
 8 files changed, 8 insertions(+), 8 deletions(-)
0a122b
0a122b
Signed-off-by: Michal Novotny <minovotn@redhat.com>
0a122b
---
0a122b
 tests/boot-order-test.c | 2 +-
0a122b
 tests/fw_cfg-test.c     | 3 +--
0a122b
 tests/hd-geo-test.c     | 2 +-
0a122b
 tests/i440fx-test.c     | 2 +-
0a122b
 tests/libqtest.c        | 1 +
0a122b
 tests/m48t59-test.c     | 2 +-
0a122b
 tests/rtc-test.c        | 2 +-
0a122b
 tests/tmp105-test.c     | 2 +-
0a122b
 8 files changed, 8 insertions(+), 8 deletions(-)
0a122b
0a122b
diff --git a/tests/boot-order-test.c b/tests/boot-order-test.c
0a122b
index a35e9f7..f386600 100644
0a122b
--- a/tests/boot-order-test.c
0a122b
+++ b/tests/boot-order-test.c
0a122b
@@ -32,7 +32,7 @@ static void test_pc_with_args(const char *test_args,
0a122b
                               uint8_t boot1, uint8_t boot2,
0a122b
                               uint8_t reboot1, uint8_t reboot2)
0a122b
 {
0a122b
-    char *args = g_strdup_printf("-nodefaults -display none %s", test_args);
0a122b
+    char *args = g_strdup_printf("-nodefaults %s", test_args);
0a122b
 
0a122b
     qtest_start(args);
0a122b
     test_pc_cmos(boot1, boot2);
0a122b
diff --git a/tests/fw_cfg-test.c b/tests/fw_cfg-test.c
0a122b
index c284c4d..3428dca 100644
0a122b
--- a/tests/fw_cfg-test.c
0a122b
+++ b/tests/fw_cfg-test.c
0a122b
@@ -126,8 +126,7 @@ int main(int argc, char **argv)
0a122b
     g_test_add_func("/fw_cfg/numa", test_fw_cfg_numa);
0a122b
     g_test_add_func("/fw_cfg/boot_menu", test_fw_cfg_boot_menu);
0a122b
 
0a122b
-    cmdline = g_strdup_printf("-display none "
0a122b
-                              "-uuid 4600cb32-38ec-4b2f-8acb-81c6ea54f2d8 ");
0a122b
+    cmdline = g_strdup_printf("-uuid 4600cb32-38ec-4b2f-8acb-81c6ea54f2d8 ");
0a122b
     s = qtest_start(cmdline);
0a122b
     g_free(cmdline);
0a122b
 
0a122b
diff --git a/tests/hd-geo-test.c b/tests/hd-geo-test.c
0a122b
index b72042e..c84d1e7 100644
0a122b
--- a/tests/hd-geo-test.c
0a122b
+++ b/tests/hd-geo-test.c
0a122b
@@ -171,7 +171,7 @@ static int setup_common(char *argv[], int argv_sz)
0a122b
 {
0a122b
     memset(cur_ide, 0, sizeof(cur_ide));
0a122b
     return append_arg(0, argv, argv_sz,
0a122b
-                      g_strdup("-nodefaults -display none"));
0a122b
+                      g_strdup("-nodefaults"));
0a122b
 }
0a122b
 
0a122b
 static void setup_mbr(int img_idx, MBRcontents mbr)
0a122b
diff --git a/tests/i440fx-test.c b/tests/i440fx-test.c
0a122b
index 08ce820..65c786c 100644
0a122b
--- a/tests/i440fx-test.c
0a122b
+++ b/tests/i440fx-test.c
0a122b
@@ -265,7 +265,7 @@ int main(int argc, char **argv)
0a122b
 
0a122b
     data.num_cpus = 1;
0a122b
 
0a122b
-    cmdline = g_strdup_printf("-display none -smp %d", data.num_cpus);
0a122b
+    cmdline = g_strdup_printf("-smp %d", data.num_cpus);
0a122b
     s = qtest_start(cmdline);
0a122b
     g_free(cmdline);
0a122b
 
0a122b
diff --git a/tests/libqtest.c b/tests/libqtest.c
0a122b
index 83424c3..359d571 100644
0a122b
--- a/tests/libqtest.c
0a122b
+++ b/tests/libqtest.c
0a122b
@@ -135,6 +135,7 @@ QTestState *qtest_init(const char *extra_args)
0a122b
                                   "-qmp unix:%s,nowait "
0a122b
                                   "-pidfile %s "
0a122b
                                   "-machine accel=qtest "
0a122b
+                                  "-display none "
0a122b
                                   "%s", qemu_binary, s->socket_path,
0a122b
                                   s->qmp_socket_path, pid_file,
0a122b
                                   extra_args ?: "");
0a122b
diff --git a/tests/m48t59-test.c b/tests/m48t59-test.c
0a122b
index 4081a5f..6abc4c8 100644
0a122b
--- a/tests/m48t59-test.c
0a122b
+++ b/tests/m48t59-test.c
0a122b
@@ -249,7 +249,7 @@ int main(int argc, char **argv)
0a122b
 
0a122b
     g_test_init(&argc, &argv, NULL);
0a122b
 
0a122b
-    s = qtest_start("-display none -rtc clock=vm");
0a122b
+    s = qtest_start("-rtc clock=vm");
0a122b
 
0a122b
     qtest_add_func("/rtc/bcd/check-time", bcd_check_time);
0a122b
     qtest_add_func("/rtc/fuzz-registers", fuzz_registers);
0a122b
diff --git a/tests/rtc-test.c b/tests/rtc-test.c
0a122b
index 3395d7f..f1b123f 100644
0a122b
--- a/tests/rtc-test.c
0a122b
+++ b/tests/rtc-test.c
0a122b
@@ -552,7 +552,7 @@ int main(int argc, char **argv)
0a122b
 
0a122b
     g_test_init(&argc, &argv, NULL);
0a122b
 
0a122b
-    s = qtest_start("-display none -rtc clock=vm");
0a122b
+    s = qtest_start("-rtc clock=vm");
0a122b
     qtest_irq_intercept_in(s, "ioapic");
0a122b
 
0a122b
     qtest_add_func("/rtc/check-time/bcd", bcd_check_time);
0a122b
diff --git a/tests/tmp105-test.c b/tests/tmp105-test.c
0a122b
index fecd6dc..5ac48e2 100644
0a122b
--- a/tests/tmp105-test.c
0a122b
+++ b/tests/tmp105-test.c
0a122b
@@ -59,7 +59,7 @@ int main(int argc, char **argv)
0a122b
 
0a122b
     g_test_init(&argc, &argv, NULL);
0a122b
 
0a122b
-    s = qtest_start("-display none -machine n800");
0a122b
+    s = qtest_start("-machine n800");
0a122b
     i2c = omap_i2c_create(OMAP2_I2C_1_BASE);
0a122b
     addr = N8X0_ADDR;
0a122b
 
0a122b
-- 
0a122b
1.7.11.7
0a122b