qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/6] tests/qemu-iotests: Allow to run "./check -n" from the s


From: Hanna Reitz
Subject: Re: [PATCH 3/6] tests/qemu-iotests: Allow to run "./check -n" from the source directory, too
Date: Tue, 8 Feb 2022 13:26:22 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 08.02.22 11:13, Thomas Huth wrote:
For better integration of the iotests into the meson build system, it
would be very helpful to get the list of the tests in the "auto" group
during the "configure" step already. However, "check -n -g auto"
currently only works if the binaries have already been built. Re-order
the code in the "check" a little bit so that we can use the -n option
without building the binaries first.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
  tests/qemu-iotests/check | 52 ++++++++++++++++++++++------------------
  1 file changed, 29 insertions(+), 23 deletions(-)

I don’t love how this patch completely separates dry_run from running the tests, and how finding source_iotests is replicated from testenv.py.  For the latter, we should at least assert somewhere that source_iotests == env.source_iotests.

Wouldn’t it instead be possible to pass args.dry_run to TestEnv and have it just skip all build-dir-related stuff, which I think is just the self.init_binaries() call (and perhaps the self.qemu_prog check in the `for suffix, machine in machine_map` loop)?

Hanna




reply via email to

[Prev in Thread] Current Thread [Next in Thread]