qemu-ga: do not run qga test when guest agent disabled
PATCH 1/1 qemu-ga: do not run qga test when guest agent disabled
When configure with --disable-guest-agent, make check will fail with:
ERROR:tests/test-qga.c:74:fixture_setup: assertion failed (error == NULL):
Failed to execute child process "/home/xx/qemu/qemu-ga" (No such file or
directory) (g-exec-error-quark, 8)
make: *** [check-tests/test-qga] Error 1
This check was commented out by bab47d9a75a. I think that was by mistake, because the commit message of that commit didn't mention this change.
--- tests/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
tests/Makefile +3 -1
@@ -83,7 +83,9 @@ check-unit-y += tests/test-crypto-cipher$(EXESUF) check-unit-y += tests/test-crypto-secret$(EXESUF) check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlscredsx509$(EXESUF) check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlssession$(EXESUF) -#check-unit-$(CONFIG_LINUX) += tests/test-qga$(EXESUF) +ifneq (,$(findstring qemu-ga,$(TOOLS))) +check-unit-$(CONFIG_LINUX) += tests/test-qga$(EXESUF) +endif check-unit-y += tests/test-timed-average$(EXESUF) check-unit-y += tests/test-io-task$(EXESUF) check-unit-y += tests/test-io-channel-socket$(EXESUF)
Signature · 1 line
1.8.3.1
I think this patch should also be backported to stable v2.5.1
Quoted 39 lines · Yang Hongyang
When configure with --disable-guest-agent, make check will fail with:
ERROR:tests/test-qga.c:74:fixture_setup: assertion failed (error == NULL):
Failed to execute child process "/home/xx/qemu/qemu-ga" (No such file or
directory) (g-exec-error-quark, 8)
make: *** [check-tests/test-qga] Error 1This check was commented out by
bab47d9a75a. I think that was by mistake, because the commit message of that commit didn't mention this change.Signed-off-by Yang Hongyang <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc Michael S. Tsirkin <[email protected]>Cc Michael Roth <[email protected]>Cc Paolo Bonzini <[email protected]>--- tests/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)tests/Makefile +3
-2@@ -83,7 +83,9 @@ check-unit-y += tests/test-crypto-cipher$(EXESUF) check-unit-y += tests/test-crypto-secret$(EXESUF) check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlscredsx509$(EXESUF) check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlssession$(EXESUF) -#check-unit-$(CONFIG_LINUX) += tests/test-qga$(EXESUF) +ifneq (,$(findstring qemu-ga,$(TOOLS))) +check-unit-$(CONFIG_LINUX) += tests/test-qga$(EXESUF) +endif check-unit-y += tests/test-timed-average$(EXESUF) check-unit-y += tests/test-io-task$(EXESUF) check-unit-y += tests/test-io-channel-socket$(EXESUF) --1.8.3.1
Signature · 2 lines
Thanks, Yang
Michael Roth
AppliedQuoting Yang Hongyang (2016-04-19 02:39:13)
Quoted 10 lines
When configure with --disable-guest-agent, make check will fail with:
ERROR:tests/test-qga.c:74:fixture_setup: assertion failed (error == NULL):
Failed to execute child process "/home/xx/qemu/qemu-ga" (No such file or
directory) (g-exec-error-quark, 8)
make: *** [check-tests/test-qga] Error 1This check was commented out by
bab47d9a75a. I think that was by mistake, because the commit message of that commit didn't mention this change.
Quoted 5 lines
Signed-off-by Yang Hongyang <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc Michael S. Tsirkin <[email protected]>Cc Michael Roth <[email protected]>Cc Paolo Bonzini <[email protected]>
Thanks, applied to qga tree:
https://github.com/mdroth/qemu/commits/qga
As much as I'd like to get this fixed for 2.6, the net effect, thanks to the inadvertant commenting out of qga test case in bab47d9a75a, is that the qemu-ga unit test currently gets skipped during make check. Given RC3 is going to be tagged soon, and afaik is the last RC, I'm not sure I would consider this enough of a blocker to send a last-minute pull.
Peter: if you think there's still a window to get this in let me know and I'll send the pull immediately. But for now I'll queue this for 2.7 and for stable.
Quoted 22 lines
--- tests/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)tests/Makefile +3
-1@@ -83,7 +83,9 @@ check-unit-y += tests/test-crypto-cipher$(EXESUF) check-unit-y += tests/test-crypto-secret$(EXESUF) check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlscredsx509$(EXESUF) check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlssession$(EXESUF) -#check-unit-$(CONFIG_LINUX) += tests/test-qga$(EXESUF) +ifneq (,$(findstring qemu-ga,$(TOOLS))) +check-unit-$(CONFIG_LINUX) += tests/test-qga$(EXESUF) +endif check-unit-y += tests/test-timed-average$(EXESUF) check-unit-y += tests/test-io-task$(EXESUF) check-unit-y += tests/test-io-channel-socket$(EXESUF)Signature · 1 line
1.8.3.1
Quoted 27 lines · Michael Roth
Quoting Yang Hongyang (2016-04-19 02:39:13)
Quoted 10 lines
When configure with --disable-guest-agent, make check will fail with:
ERROR:tests/test-qga.c:74:fixture_setup: assertion failed (error == NULL):
Failed to execute child process "/home/xx/qemu/qemu-ga" (No such file or
directory) (g-exec-error-quark, 8)
make: *** [check-tests/test-qga] Error 1This check was commented out by
bab47d9a75a. I think that was by mistake, because the commit message of that commit didn't mention this change.Quoted 5 lines
Signed-off-by Yang Hongyang <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc Michael S. Tsirkin <[email protected]>Cc Michael Roth <[email protected]>Cc Paolo Bonzini <[email protected]>Thanks, applied to qga tree:
https://github.com/mdroth/qemu/commits/qgaAs much as I'd like to get this fixed for 2.6, the net effect, thanks to the inadvertant commenting out of qga test case in
bab47d9a75a, is that the qemu-ga unit test currently gets skipped during make check. Given RC3 is going to be tagged soon, and afaik is the last RC, I'm not sure I would consider this enough of a blocker to send a last-minute pull.
Quoted 3 lines
Peter: if you think there's still a window to get this in let me know and I'll send the pull immediately. But for now I'll queue this for 2.7 and for stable.
Well, I'm not planning to tag RC3 til Thursday, so you have time in that sense. Whether it's worth putting into RC3 I leave to your judgement (it sounds like the only effect of not having it is "there's a test case we could be running that we don't run" ?)
thanks
-- PMM
Quoting Peter Maydell (2016-04-19 17:08:03)
Quoted 28 lines · Michael Roth
Quoted 27 lines
Quoting Yang Hongyang (2016-04-19 02:39:13)
Quoted 10 lines
When configure with --disable-guest-agent, make check will fail with:
ERROR:tests/test-qga.c:74:fixture_setup: assertion failed (error == NULL):
Failed to execute child process "/home/xx/qemu/qemu-ga" (No such file or
directory) (g-exec-error-quark, 8)
make: *** [check-tests/test-qga] Error 1This check was commented out by
bab47d9a75a. I think that was by mistake, because the commit message of that commit didn't mention this change.Quoted 5 lines
Signed-off-by Yang Hongyang <[email protected]>Cc Gerd Hoffmann <[email protected]>Cc Michael S. Tsirkin <[email protected]>Cc Michael Roth <[email protected]>Cc Paolo Bonzini <[email protected]>Thanks, applied to qga tree:
https://github.com/mdroth/qemu/commits/qgaAs much as I'd like to get this fixed for 2.6, the net effect, thanks to the inadvertant commenting out of qga test case in
bab47d9a75a, is that the qemu-ga unit test currently gets skipped during make check. Given RC3 is going to be tagged soon, and afaik is the last RC, I'm not sure I would consider this enough of a blocker to send a last-minute pull.
Quoted 8 lines
Quoted 3 lines
Peter: if you think there's still a window to get this in let me know and I'll send the pull immediately. But for now I'll queue this for 2.7 and for stable.
Well, I'm not planning to tag RC3 til Thursday, so you have time in that sense. Whether it's worth putting into RC3 I leave to your judgement (it sounds like the only effect of not having it is "there's a test case we could be running that we don't run" ?)
Yes. Although the patch fixes a more serious build/make check issue with --disable-guest-agent, the inadvertant commenting in bab47d9a75a (which was probably to work around that bug) masks the build failures by unconditionally disabling the test.
Since disabling the unit test is a late regression, I think it's probably worthwhile to try to fix as long as it isn't holding up the release. Will send a pull shortly.
Quoted 4 lines
thanks
-- PMM