qemu/tests/functional
Daniel P. Berrangé 97d79319f0 tests/functional: remove time.sleep usage from tuxrun tests
The tuxrun tests send a series of strings to the guest to login
and then run commands. Since we have been unable to match on
console output that isn't followed by a newline, the test used
many time.sleep() statements to pretend to synchronize with
the guest.

This has proved to be unreliable for the aarch64be instance of
the tuxrun tests, with the test often hanging. The hang is a
very subtle timing problem, and it is suspected that some
(otherwise apparently harmless) I/O error messages could be
resulting in full FIFO buffers, stalling interaction with
the guest.

With the newly rewritten console interaction able to match
strings that don't have a following newline, the tux run
tests can now match directly on the login prompt, and/or
shell PS1 prompt.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2689
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20241121154218.1423005-17-berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20241121165806.476008-17-alex.bennee@linaro.org>
2024-11-25 10:13:41 +00:00
..
acpi-bits tests/functional: Convert the acpi-bits test into a standalone test 2024-09-04 11:14:33 +02:00
qemu_test tests/functional: remove time.sleep usage from tuxrun tests 2024-11-25 10:13:41 +00:00
meson.build tests/functional: Split the test_aarch64_sbsaref test 2024-11-08 06:16:45 +01:00
test_aarch64_raspi3.py tests/functional: Convert Aarch64 Raspi3 avocado tests 2024-09-11 09:49:11 +02:00
test_aarch64_raspi4.py tests/functional: Convert Aarch64 Raspi4 avocado tests 2024-09-11 09:49:11 +02:00
test_aarch64_sbsaref.py tests/functional: Split the test_aarch64_sbsaref test 2024-11-08 06:16:45 +01:00
test_aarch64_sbsaref_alpine.py tests/functional: Split the test_aarch64_sbsaref test 2024-11-08 06:16:45 +01:00
test_aarch64_sbsaref_freebsd.py tests/functional: Split the test_aarch64_sbsaref test 2024-11-08 06:16:45 +01:00
test_aarch64_tcg_plugins.py tests/functional: Convert the tcg_plugins test 2024-11-04 14:16:12 +01:00
test_aarch64_virt.py tests/functional: Convert Aarch64 Virt machine avocado tests 2024-09-04 12:28:00 +02:00
test_acpi_bits.py tests/functional: honour self.workdir in ACPI bits tests 2024-11-25 10:06:20 +00:00
test_alpha_clipper.py tests/functional: Convert the Alpha Clipper Avocado test 2024-09-11 09:49:11 +02:00
test_arm_aspeed.py * Various fixes and improvements for the functional tests 2024-11-08 14:47:29 +00:00
test_arm_bflt.py tests/functional: Convert ARM bFLT linux-user avocado test 2024-09-04 12:28:00 +02:00
test_arm_bpim2u.py tests/functional: remove leftover 🥑 tags 2024-11-25 10:06:20 +00:00
test_arm_canona1100.py tests/functional: Convert some avocado tests that needed avocado.utils.archive 2024-09-04 11:14:29 +02:00
test_arm_collie.py tests/functional: Add a functional test for the collie board 2024-10-29 15:04:46 +00:00
test_arm_integratorcp.py tests/functional: Convert ARM Integrator/CP avocado tests 2024-09-04 11:14:51 +02:00
test_arm_orangepi.py tests/functional: remove leftover 🥑 tags 2024-11-25 10:06:20 +00:00
test_arm_raspi2.py tests/functional: Convert ARM Raspi2 avocado tests 2024-09-11 09:49:11 +02:00
test_arm_sx1.py tests/functional: Add a functional test for the sx1 board 2024-10-29 15:04:46 +00:00
test_arm_tuxrun.py tests/functional: Convert the Avocado arm tuxrun tests 2024-10-21 16:31:06 +02:00
test_arm_vexpress.py tests/functional: Switch back to the gitlab URLs for the advent calendar tests 2024-10-07 12:26:14 +02:00
test_avr_mega2560.py tests/functional: Convert some tests that download files via fetch_asset() 2024-09-04 11:11:31 +02:00
test_cpu_queries.py tests/functional: Convert simple avocado tests into standalone python tests 2024-09-04 10:52:29 +02:00
test_empty_cpu_model.py tests/functional: Convert simple avocado tests into standalone python tests 2024-09-04 10:52:29 +02:00
test_i386_tuxrun.py tests/functional: Convert the Avocado i386 tuxrun test 2024-10-21 16:32:16 +02:00
test_info_usernet.py tests/functional: Convert avocado tests that just need a small adjustment 2024-09-04 10:52:29 +02:00
test_linux_initrd.py tests/functional: Convert the linux_initrd avocado test into a standalone test 2024-09-04 11:14:33 +02:00
test_loongarch64_virt.py tests/functional: Convert some tests that download files via fetch_asset() 2024-09-04 11:11:31 +02:00
test_m68k_mcf5208evb.py tests/functional: Switch back to the gitlab URLs for the advent calendar tests 2024-10-07 12:26:14 +02:00
test_m68k_nextcube.py tests/functional: remove todo wrt avocado.utils.wait_for 2024-11-25 10:06:20 +00:00
test_m68k_q800.py tests/functional: Convert the m68k Q800 Avocado test into a functional test 2024-09-11 09:49:11 +02:00
test_mem_addr_space.py tests/functional: Convert simple avocado tests into standalone python tests 2024-09-04 10:52:29 +02:00
test_microblaze_s3adsp1800.py tests/functional: Convert the microblaze avocado tests into standalone tests 2024-09-04 11:14:33 +02:00
test_microblazeel_s3adsp1800.py tests/functional: Convert the microblaze avocado tests into standalone tests 2024-09-04 11:14:33 +02:00
test_mips64_tuxrun.py tests/functional: Convert the Avocado mips64 tuxrun test 2024-10-21 16:38:07 +02:00
test_mips64el_fuloong2e.py tests/functional: Convert mips64el Fuloong2e avocado test (2/2) 2024-09-11 09:49:11 +02:00
test_mips64el_loongson3v.py tests/functional: Convert some tests that download files via fetch_asset() 2024-09-04 11:11:31 +02:00
test_mips64el_malta.py tests/functional: remove "AVOCADO" from env variable name 2024-11-25 10:06:20 +00:00
test_mips64el_tuxrun.py tests/functional: Convert the Avocado mips64el tuxrun test 2024-10-21 16:39:41 +02:00
test_mips_malta.py tests/functional: Convert mips32eb 4Kc Malta avocado tests 2024-09-11 09:49:11 +02:00
test_mips_tuxrun.py tests/functional: Convert the Avocado mips tuxrun test 2024-10-21 16:35:59 +02:00
test_mipsel_malta.py tests/functional: Convert nanomips Malta avocado tests 2024-09-11 09:49:11 +02:00
test_mipsel_tuxrun.py tests/functional: Convert the Avocado mipsel tuxrun test 2024-10-21 16:36:58 +02:00
test_multiprocess.py tests/functional: Convert the multiprocess avocado test into a standalone test 2024-09-11 09:49:12 +02:00
test_netdev_ethtool.py tests/functional: Correct typo in test_netdev_ethtool.py SPDX tag 2024-09-20 10:11:59 +03:00
test_or1k_sim.py tests/functional: Switch back to the gitlab URLs for the advent calendar tests 2024-10-07 12:26:14 +02:00
test_pc_cpu_hotplug_props.py tests/functional: Convert simple avocado tests into standalone python tests 2024-09-04 10:52:29 +02:00
test_ppc64_e500.py tests/functional: Switch back to the gitlab URLs for the advent calendar tests 2024-10-07 12:26:14 +02:00
test_ppc64_hv.py tests/functional: Fix the ppc64_hv and the ppc_40p test for read-only assets 2024-11-08 06:13:34 +01:00
test_ppc64_powernv.py tests/functional: Convert the powernv tests from boot_linux_console.py 2024-09-24 13:45:06 +02:00
test_ppc64_pseries.py tests/functional: Convert most ppc avocado tests into standalone tests 2024-09-04 11:14:33 +02:00
test_ppc64_tuxrun.py tests/functional: Fix the s390x and ppc64 tuxrun tests 2024-11-04 14:16:11 +01:00
test_ppc_40p.py tests/functional: Fix the ppc64_hv and the ppc_40p test for read-only assets 2024-11-08 06:13:34 +01:00
test_ppc_74xx.py tests/functional: Convert avocado tests that just need a small adjustment 2024-09-04 10:52:29 +02:00
test_ppc_405.py tests/functional: Convert some tests that download files via fetch_asset() 2024-09-04 11:11:31 +02:00
test_ppc_amiga.py tests/functional: Convert the ppc_amiga avocado test into a standalone test 2024-09-04 11:14:33 +02:00
test_ppc_bamboo.py tests/functional: Convert some avocado tests that needed avocado.utils.archive 2024-09-04 11:14:29 +02:00
test_ppc_mac.py tests/functional: Switch back to the gitlab URLs for the advent calendar tests 2024-10-07 12:26:14 +02:00
test_ppc_mpc8544ds.py tests/functional: Convert most ppc avocado tests into standalone tests 2024-09-04 11:14:33 +02:00
test_ppc_tuxrun.py tests/functional: Convert the Avocado ppc32 tuxrun test 2024-10-21 16:40:09 +02:00
test_ppc_virtex_ml507.py tests/functional: Convert most ppc avocado tests into standalone tests 2024-09-04 11:14:33 +02:00
test_riscv32_tuxrun.py tests/functional: Convert the Avocado riscv32 tuxrun tests 2024-10-21 16:31:15 +02:00
test_riscv64_tuxrun.py tests/functional: Convert the RV32-on-RV64 riscv test 2024-11-07 13:12:58 +10:00
test_riscv_opensbi.py tests/functional: Convert the riscv_opensbi avocado test into a standalone test 2024-11-08 06:13:34 +01:00
test_rx_gdbsim.py tests/functional: Convert the rx_gdbsim avocado test into a standalone test 2024-09-04 11:14:33 +02:00
test_s390x_ccw_virtio.py tests/functional: Convert the s390x avocado tests into standalone tests 2024-09-04 11:14:33 +02:00
test_s390x_topology.py tests/functional: Convert the s390x avocado tests into standalone tests 2024-09-04 11:14:33 +02:00
test_s390x_tuxrun.py tests/functional: Convert the Avocado s390x tuxrun test 2024-10-21 16:28:59 +02:00
test_sh4_r2d.py tests/functional: Switch back to the gitlab URLs for the advent calendar tests 2024-10-07 12:26:14 +02:00
test_sh4_tuxrun.py tests/functional: Convert the Avocado sh4 tuxrun test 2024-10-21 16:41:39 +02:00
test_sh4eb_r2d.py tests/functional: Add a test for sh4eb 2024-11-04 14:16:11 +01:00
test_sparc64_sun4u.py tests/functional: Convert some avocado tests that needed avocado.utils.archive 2024-09-04 11:14:29 +02:00
test_sparc64_tuxrun.py tests/functional: Convert the Avocado sparc64 tuxrun test 2024-10-21 16:28:59 +02:00
test_sparc_sun4m.py tests/functional: Switch back to the gitlab URLs for the advent calendar tests 2024-10-07 12:26:14 +02:00
test_version.py tests/functional: Convert avocado tests that just need a small adjustment 2024-09-04 10:52:29 +02:00
test_virtio_gpu.py tests/functional: don't try to wait for the empty string 2024-11-25 10:13:41 +00:00
test_virtio_version.py tests/functional: Convert simple avocado tests into standalone python tests 2024-09-04 10:52:29 +02:00
test_x86_64_tuxrun.py tests/functional: Convert the Avocado x86_64 tuxrun test 2024-10-21 16:32:20 +02:00
test_x86_cpu_model_versions.py tests/functional: Convert the x86_cpu_model_versions test 2024-09-04 11:14:33 +02:00
test_xtensa_lx60.py tests/functional: Switch back to the gitlab URLs for the advent calendar tests 2024-10-07 12:26:14 +02:00