Philippe Mathieu-Daudé <phi...@redhat.com> writes:
> The BootLinuxAarch64.test_virt_tcg is reported to take >7min to run. > Add a possibility to users to skip this particular test, by setting > the AVOCADO_SKIP_SLOW_TESTS environment variable: > > $ AVOCADO_SKIP_SLOW_TESTS=please make check-acceptance > ... > (05/88) tests/acceptance/boot_linux.py:BootLinuxAarch64.test_virt_tcg: > SKIP: Test takes >7min > ... 7m = 420s - I'm seeing: hyperfine "./tests/venv/bin/avocado run ./tests/acceptance/boot_linux.py:BootLinuxAarch64.test_virt_tcg" Benchmark #1: ./tests/venv/bin/avocado run ./tests/acceptance/boot_linux.py:BootLinuxAarch64.test_virt_tcg Time (mean ± σ): 162.179 s ± 3.138 s [User: 204.726 s, System: 9.663 s] Range (min … max): 158.651 s … 170.036 s 10 runs Is this on very slow hardware? > > Reported-by: Peter Maydell <peter.mayd...@linaro.org> > Signed-off-by: Philippe Mathieu-Daudé <phi...@redhat.com> > --- > tests/acceptance/boot_linux.py | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tests/acceptance/boot_linux.py b/tests/acceptance/boot_linux.py > index 075a386300..a8df50d769 100644 > --- a/tests/acceptance/boot_linux.py > +++ b/tests/acceptance/boot_linux.py > @@ -15,6 +15,7 @@ > from qemu.accel import kvm_available > from qemu.accel import tcg_available > > +from avocado import skipIf > from avocado.utils import cloudinit > from avocado.utils import network > from avocado.utils import vmimage > @@ -159,6 +160,7 @@ def add_common_args(self): > self.vm.add_args('-device', 'virtio-rng-pci,rng=rng0') > self.vm.add_args('-object', > 'rng-random,id=rng0,filename=/dev/urandom') > > + @skipIf(os.getenv('AVOCADO_SKIP_SLOW_TESTS'), 'Test takes >7min') > def test_virt_tcg(self): > """ > :avocado: tags=accel:tcg -- Alex Bennée