[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH-for-9.2? v2 1/2] tests/functional/test_version: Use QTest acc
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH-for-9.2? v2 1/2] tests/functional/test_version: Use QTest accelerator |
Date: |
Tue, 3 Dec 2024 09:33:26 +0000 |
User-agent: |
Mutt/2.2.13 (2024-03-09) |
On Tue, Dec 03, 2024 at 10:26:11AM +0100, Philippe Mathieu-Daudé wrote:
> On 3/12/24 10:18, Daniel P. Berrangé wrote:
> > On Tue, Dec 03, 2024 at 10:10:35AM +0100, Philippe Mathieu-Daudé wrote:
> > > When testing with a HVF-only binary, we get:
> > >
> > > 3/12 qemu:func-quick+func-aarch64 / func-aarch64-version
> > > ERROR 0.29s exit status 1
> > > stderr:
> > > Traceback (most recent call last):
> > > File "tests/functional/test_version.py", line 22, in
> > > test_qmp_human_info_version
> > > self.vm.launch()
> > > File "machine/machine.py", line 461, in launch
> > > raise VMLaunchFailure(
> > > qemu.machine.machine.VMLaunchFailure: ConnectError: Failed to
> > > establish session: EOFError
> > > Exit code: 1
> > > Command: build/qemu-system-aarch64 -display none -vga none
> > > -chardev socket,id=mon,fd=5 -mon chardev=mon,mode=control -machine none
> > > -nodefaults
> > > Output: qemu-system-aarch64: No accelerator selected and no
> > > default accelerator available
> > >
> > > Explicit the QTest accelerator to be able to run the HMP command.
> > >
> > > Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> > > ---
> > > tests/functional/test_version.py | 1 +
> > > 1 file changed, 1 insertion(+)
> > >
> > > diff --git a/tests/functional/test_version.py
> > > b/tests/functional/test_version.py
> > > index 3ab3b67f7e3..d3da796991f 100755
> > > --- a/tests/functional/test_version.py
> > > +++ b/tests/functional/test_version.py
> > > @@ -18,6 +18,7 @@ class Version(QemuSystemTest):
> > > def test_qmp_human_info_version(self):
> > > self.set_machine('none')
> > > + self.vm.add_args('-accel', 'qtest')
> >
> > IMHO this is wrong. The functional tests are there to test the
> > real functional behaviour under an actual accelerator not qtest.
>
> It works using '-accel hvf'. The issue is:
>
> "No accelerator selected and no default accelerator available"
>
> So we should select HVF over QTest by default? I tend to not
> enforce any default because we always get troubles with them,
> what is today's default is unlikely tomorrow's one.
I don't know the history of HVF, but why would we ever not
want to pick HVF if that is the /only/ accelerator built
in to the binary ? Surely the build configuration chosen
inherantly says we want HVF used all the time.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
[PATCH-for-9.2? v2 2/2] tests/functional/test_empty_cpu_model: Use QTest accelerator, Philippe Mathieu-Daudé, 2024/12/03