On 28/02/2025 11.27, Daniel P. Berrangé wrote:
If the QEMU binary was built for a 32-bit ELF target we cannot run the
memory address space tests as they all require ability to address more
RAM that can be represented on 32-bit.

We can't use a decorator to skip the tests as we need setUp() to run to
pick the QEMU binary, thus we must call a method at the start of each
test to check and skip it. The functional result is effectively the
same as using a decorator, just less pretty. This code will go away when
32-bit hosts are full dropped from QEMU.

The code allows any non-ELF target since all macOS versions supported
at 64-bit only and we already dropped support for 32-bit Windows.

Signed-off-by: Daniel P. Berrangé <berra...@redhat.com>
---
  tests/functional/test_mem_addr_space.py | 34 +++++++++++++++++++++++++
  1 file changed, 34 insertions(+)

Reviewed-by: Thomas Huth <th...@redhat.com>


Reply via email to