[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] qtest: Adding -display none to new tests
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH] qtest: Adding -display none to new tests |
Date: |
Fri, 15 Nov 2013 20:54:06 +0100 |
Without it, you either get a window for a short time, or worse, test
failures when 'make check' isn't run in an X session.
Signed-off-by: Kevin Wolf <address@hidden>
---
tests/blockdev-test.c | 2 +-
tests/qdev-monitor-test.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/blockdev-test.c b/tests/blockdev-test.c
index c940e00..fa49e09 100644
--- a/tests/blockdev-test.c
+++ b/tests/blockdev-test.c
@@ -20,7 +20,7 @@ static void test_drive_add_empty(void)
const char *response_return;
/* Start with an empty drive */
- qtest_start("-drive if=none,id=drive0");
+ qtest_start("-display none -drive if=none,id=drive0");
/* Delete the drive */
response = qmp("{\"execute\": \"human-monitor-command\","
diff --git a/tests/qdev-monitor-test.c b/tests/qdev-monitor-test.c
index 33a8ea4..091ea5b 100644
--- a/tests/qdev-monitor-test.c
+++ b/tests/qdev-monitor-test.c
@@ -20,7 +20,7 @@ static void test_device_add(void)
QDict *response;
QDict *error;
- qtest_start("-drive if=none,id=drive0");
+ qtest_start("-display none -drive if=none,id=drive0");
/* Make device_add fail. If this leaks the virtio-blk-pci device then a
* reference to drive0 will also be held (via qdev properties).
--
1.8.1.4
- [Qemu-devel] [PATCH] qtest: Adding -display none to new tests,
Kevin Wolf <=