qemu/tests/functional/qemu_test
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
..
__init__.py tests/functional: Add the LinuxKernelTest for testing the Linux boot process 2024-09-11 09:49:11 +02:00
asset.py tests/functional: make cached asset files read-only 2024-11-04 14:16:11 +01:00
cmd.py tests/functional: rewrite console handling to be bytewise 2024-11-25 10:13:41 +00:00
config.py tests/functional: Add base classes for the upcoming pytest-based tests 2024-09-04 10:52:29 +02:00
linuxkernel.py tests/functional/qemu_test: Add a function for launching kernels more easily 2024-09-24 13:38:29 +02:00
tesseract.py tests/functional: Fix bad usage of has_cmd 2024-09-11 09:49:12 +02:00
testcase.py tests/functional: enable debug logging for QEMUMachine 2024-11-25 10:13:33 +00:00
tuxruntest.py tests/functional: remove time.sleep usage from tuxrun tests 2024-11-25 10:13:41 +00:00
utils.py tests/functional: Convert BananaPi tests to the functional framework 2024-11-04 14:16:12 +01:00