]> git.proxmox.com Git - mirror_qemu.git/commit - tests/avocado/machine_aspeed.py
tests/avocado/machine_aspeed: Fix the broken ast2[56]00_evb_sdk tests
authorThomas Huth <thuth@redhat.com>
Mon, 24 Apr 2023 09:22:40 +0000 (10:22 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 27 Apr 2023 13:58:23 +0000 (14:58 +0100)
commitdd562bbfd73cbd937a6fc393887efa804b2fad08
tree02b0a39a414363ada3e5de30c8a001297d1c1fac
parentca3b0dc3d7450fb5b2eaff4de584ef3eb10466ff
tests/avocado/machine_aspeed: Fix the broken ast2[56]00_evb_sdk tests

test_arm_ast2500_evb_sdk and test_arm_ast2600_evb_sdk are currently
failing. The problem is that they are trying to look for the login
prompt that does not have a newline at the end - but the logic in
_console_interaction() only handles full lines. It used to work by
accident in the past since there were sometimes kernel (warning and
error) messages popping up that finally provided a newline character
in the output, but since the tests have been changed to run with the
"quiet" kernel parameter, this is not working anymore.

To make this work reliably, we must not look for the "login:" prompt,
but have to use some text ending with a newline instead. And in the
ast2600 test, switch to ssh instead of trying to log into the serial
console - this works much more reliable and also has the benefit of
excercising the network interface here a little bit, too.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20230421110345.1294131-3-thuth@redhat.com>
[AJB: remove stray debug log]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230424092249.58552-10-alex.bennee@linaro.org>
tests/avocado/machine_aspeed.py