qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] qtest: Adding -display none to new tests
@ 2013-11-15 19:54 Kevin Wolf
  2013-11-18 15:18 ` Stefan Hajnoczi
  2013-11-18 16:09 ` Andreas Färber
  0 siblings, 2 replies; 4+ messages in thread
From: Kevin Wolf @ 2013-11-15 19:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, stefanha

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 <kwolf@redhat.com>
---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] qtest: Adding -display none to new tests
  2013-11-15 19:54 [Qemu-devel] [PATCH] qtest: Adding -display none to new tests Kevin Wolf
@ 2013-11-18 15:18 ` Stefan Hajnoczi
  2013-11-18 15:31   ` Kevin Wolf
  2013-11-18 16:09 ` Andreas Färber
  1 sibling, 1 reply; 4+ messages in thread
From: Stefan Hajnoczi @ 2013-11-18 15:18 UTC (permalink / raw)
  To: Kevin Wolf; +Cc: qemu-devel, stefanha

On Fri, Nov 15, 2013 at 08:54:06PM +0100, Kevin Wolf wrote:
> 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 <kwolf@redhat.com>
> ---
>  tests/blockdev-test.c     | 2 +-
>  tests/qdev-monitor-test.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Thanks, I merged earlier "[PATCH for-1.7] tests: add missing -display
none to qtests" patch.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] qtest: Adding -display none to new tests
  2013-11-18 15:18 ` Stefan Hajnoczi
@ 2013-11-18 15:31   ` Kevin Wolf
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Wolf @ 2013-11-18 15:31 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: qemu-devel, stefanha

Am 18.11.2013 um 16:18 hat Stefan Hajnoczi geschrieben:
> On Fri, Nov 15, 2013 at 08:54:06PM +0100, Kevin Wolf wrote:
> > 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 <kwolf@redhat.com>
> > ---
> >  tests/blockdev-test.c     | 2 +-
> >  tests/qdev-monitor-test.c | 2 +-
> >  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> Thanks, I merged earlier "[PATCH for-1.7] tests: add missing -display
> none to qtests" patch.

It didn't arrive in master yet. Are you sure it was queued in the block
tree?

Kevin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] qtest: Adding -display none to new tests
  2013-11-15 19:54 [Qemu-devel] [PATCH] qtest: Adding -display none to new tests Kevin Wolf
  2013-11-18 15:18 ` Stefan Hajnoczi
@ 2013-11-18 16:09 ` Andreas Färber
  1 sibling, 0 replies; 4+ messages in thread
From: Andreas Färber @ 2013-11-18 16:09 UTC (permalink / raw)
  To: Kevin Wolf, qemu-devel, stefanha; +Cc: Paolo Bonzini, Anthony Liguori

Hi,

Am 15.11.2013 20:54, schrieb Kevin Wolf:
> 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 <kwolf@redhat.com>
> ---
>  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");
[snip]

I've been wondering: Can't we just make qtest_start prepend -display
none always, so that we don't have to remember to repeatedly add it
everywhere?

Cheers,
Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-18 16:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-15 19:54 [Qemu-devel] [PATCH] qtest: Adding -display none to new tests Kevin Wolf
2013-11-18 15:18 ` Stefan Hajnoczi
2013-11-18 15:31   ` Kevin Wolf
2013-11-18 16:09 ` Andreas Färber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).