* [Qemu-devel] [PATCH] qemu-iotests: Use -nographic in 182
@ 2017-10-29 12:53 Kevin Wolf
2017-10-30 8:39 ` Kashyap Chamarthy
2017-10-30 15:11 ` [Qemu-devel] [Qemu-block] " Jeff Cody
0 siblings, 2 replies; 5+ messages in thread
From: Kevin Wolf @ 2017-10-29 12:53 UTC (permalink / raw)
To: qemu-block; +Cc: kwolf, qemu-devel
This avoids that random UI frontend error messages end up in the output.
In particular, we were seeing this line in CI error logs:
+Unable to init server: Could not connect: Connection refused
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
tests/qemu-iotests/182 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/182 b/tests/qemu-iotests/182
index 2e078ceed8..4b31592fb8 100755
--- a/tests/qemu-iotests/182
+++ b/tests/qemu-iotests/182
@@ -62,7 +62,7 @@ _launch_qemu -drive file=$TEST_IMG,if=none,id=drive0,file.locking=on \
echo
echo "Starting a second QEMU using the same image should fail"
-echo 'quit' | $QEMU -monitor stdio \
+echo 'quit' | $QEMU -nographic -monitor stdio \
-drive file=$TEST_IMG,if=none,id=drive0,file.locking=on \
-device $virtioblk,drive=drive0 2>&1 | _filter_testdir 2>&1 |
_filter_qemu |
--
2.13.6
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] qemu-iotests: Use -nographic in 182
2017-10-29 12:53 [Qemu-devel] [PATCH] qemu-iotests: Use -nographic in 182 Kevin Wolf
@ 2017-10-30 8:39 ` Kashyap Chamarthy
2017-10-30 10:13 ` Kevin Wolf
2017-10-30 15:11 ` [Qemu-devel] [Qemu-block] " Jeff Cody
1 sibling, 1 reply; 5+ messages in thread
From: Kashyap Chamarthy @ 2017-10-30 8:39 UTC (permalink / raw)
To: Kevin Wolf; +Cc: qemu-block, qemu-devel
On Sun, Oct 29, 2017 at 01:53:38PM +0100, Kevin Wolf wrote:
> This avoids that random UI frontend error messages end up in the output.
> In particular, we were seeing this line in CI error logs:
>
> +Unable to init server: Could not connect: Connection refused
>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
> tests/qemu-iotests/182 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/qemu-iotests/182 b/tests/qemu-iotests/182
> index 2e078ceed8..4b31592fb8 100755
> --- a/tests/qemu-iotests/182
> +++ b/tests/qemu-iotests/182
> @@ -62,7 +62,7 @@ _launch_qemu -drive file=$TEST_IMG,if=none,id=drive0,file.locking=on \
>
> echo
> echo "Starting a second QEMU using the same image should fail"
> -echo 'quit' | $QEMU -monitor stdio \
> +echo 'quit' | $QEMU -nographic -monitor stdio \
Isn't "-display none" preferred instead of "-nographic"?
Assuming you'll change it to "-display none":
Reviewed-by: Kashyap CHamarthy <kchamart@redhat.com>
[...]
--
/kashyap
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] qemu-iotests: Use -nographic in 182
2017-10-30 8:39 ` Kashyap Chamarthy
@ 2017-10-30 10:13 ` Kevin Wolf
2017-10-30 13:54 ` Kashyap Chamarthy
0 siblings, 1 reply; 5+ messages in thread
From: Kevin Wolf @ 2017-10-30 10:13 UTC (permalink / raw)
To: Kashyap Chamarthy; +Cc: qemu-block, qemu-devel
Am 30.10.2017 um 09:39 hat Kashyap Chamarthy geschrieben:
> On Sun, Oct 29, 2017 at 01:53:38PM +0100, Kevin Wolf wrote:
> > This avoids that random UI frontend error messages end up in the output.
> > In particular, we were seeing this line in CI error logs:
> >
> > +Unable to init server: Could not connect: Connection refused
> >
> > Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> > ---
> > tests/qemu-iotests/182 | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/tests/qemu-iotests/182 b/tests/qemu-iotests/182
> > index 2e078ceed8..4b31592fb8 100755
> > --- a/tests/qemu-iotests/182
> > +++ b/tests/qemu-iotests/182
> > @@ -62,7 +62,7 @@ _launch_qemu -drive file=$TEST_IMG,if=none,id=drive0,file.locking=on \
> >
> > echo
> > echo "Starting a second QEMU using the same image should fail"
> > -echo 'quit' | $QEMU -monitor stdio \
> > +echo 'quit' | $QEMU -nographic -monitor stdio \
>
> Isn't "-display none" preferred instead of "-nographic"?
>
> Assuming you'll change it to "-display none":
>
> Reviewed-by: Kashyap CHamarthy <kchamart@redhat.com>
It's not the same thing, -nographic does more than just that, like
redirecting the serial port to stdio. In this specific case, -display
none should actually be enough, but for consistency I just did the same
thing as other qemu-iotest cases are doing.
Kevin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] qemu-iotests: Use -nographic in 182
2017-10-30 10:13 ` Kevin Wolf
@ 2017-10-30 13:54 ` Kashyap Chamarthy
0 siblings, 0 replies; 5+ messages in thread
From: Kashyap Chamarthy @ 2017-10-30 13:54 UTC (permalink / raw)
To: Kevin Wolf; +Cc: qemu-block, qemu-devel, pbonzini
On Mon, Oct 30, 2017 at 11:13:21AM +0100, Kevin Wolf wrote:
> Am 30.10.2017 um 09:39 hat Kashyap Chamarthy geschrieben:
> > On Sun, Oct 29, 2017 at 01:53:38PM +0100, Kevin Wolf wrote:
[...]
> > > echo
> > > echo "Starting a second QEMU using the same image should fail"
> > > -echo 'quit' | $QEMU -monitor stdio \
> > > +echo 'quit' | $QEMU -nographic -monitor stdio \
> >
> > Isn't "-display none" preferred instead of "-nographic"?
[...]
> It's not the same thing, -nographic does more than just that, like
> redirecting the serial port to stdio.
True, because in this test case the monitor is being sent explicitly to
'stdio'. To your point, I now vaguely recall Paolo saying on IRC that
'-nographic' is a shorthand for:
'-serial mon:stdio -machine graphics=off -display none'
> In this specific case, -display
> none should actually be enough, but for consistency I just did the same
> thing as other qemu-iotest cases are doing.
Ah, okay. At any rate:
Reviewed-by: Kashyap Chamarthy <kchamart@redhat.com>
--
/kashyap
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [Qemu-block] [PATCH] qemu-iotests: Use -nographic in 182
2017-10-29 12:53 [Qemu-devel] [PATCH] qemu-iotests: Use -nographic in 182 Kevin Wolf
2017-10-30 8:39 ` Kashyap Chamarthy
@ 2017-10-30 15:11 ` Jeff Cody
1 sibling, 0 replies; 5+ messages in thread
From: Jeff Cody @ 2017-10-30 15:11 UTC (permalink / raw)
To: Kevin Wolf; +Cc: qemu-block, qemu-devel
On Sun, Oct 29, 2017 at 01:53:38PM +0100, Kevin Wolf wrote:
> This avoids that random UI frontend error messages end up in the output.
> In particular, we were seeing this line in CI error logs:
>
> +Unable to init server: Could not connect: Connection refused
>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
> tests/qemu-iotests/182 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/qemu-iotests/182 b/tests/qemu-iotests/182
> index 2e078ceed8..4b31592fb8 100755
> --- a/tests/qemu-iotests/182
> +++ b/tests/qemu-iotests/182
> @@ -62,7 +62,7 @@ _launch_qemu -drive file=$TEST_IMG,if=none,id=drive0,file.locking=on \
>
> echo
> echo "Starting a second QEMU using the same image should fail"
> -echo 'quit' | $QEMU -monitor stdio \
> +echo 'quit' | $QEMU -nographic -monitor stdio \
> -drive file=$TEST_IMG,if=none,id=drive0,file.locking=on \
> -device $virtioblk,drive=drive0 2>&1 | _filter_testdir 2>&1 |
> _filter_qemu |
> --
> 2.13.6
>
>
Reviewed-by: Jeff Cody <jcody@redhat.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-10-30 15:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-29 12:53 [Qemu-devel] [PATCH] qemu-iotests: Use -nographic in 182 Kevin Wolf
2017-10-30 8:39 ` Kashyap Chamarthy
2017-10-30 10:13 ` Kevin Wolf
2017-10-30 13:54 ` Kashyap Chamarthy
2017-10-30 15:11 ` [Qemu-devel] [Qemu-block] " Jeff Cody
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).