[PATCH v2 0/4] tests/functional: Finish conversion of Aspeed tests

Cédric Le Goater posted 4 patches 1 week, 4 days ago
There is a newer version of this series
tests/avocado/machine_aspeed.py         | 202 ------------------------
tests/functional/meson.build            |   2 +
tests/functional/qemu_test/cmd.py       |  22 ++-
tests/functional/test_aarch64_aspeed.py |  97 ++++++++++++
tests/functional/test_arm_aspeed.py     |  79 ++++++++-
5 files changed, 191 insertions(+), 211 deletions(-)
delete mode 100644 tests/avocado/machine_aspeed.py
create mode 100644 tests/functional/test_aarch64_aspeed.py
[PATCH v2 0/4] tests/functional: Finish conversion of Aspeed tests
Posted by Cédric Le Goater 1 week, 4 days ago
Hello,

The first patch is a proposal to fix a long-standing issue when
capturing the console output. In some cases, the expected string does
not match in the output, causing the test to fail with a timeout. The
change introduces a _console_read() routine that processes the console
output character by character as a possible fix.

Last patches complete the conversion of the Aspeed tests and remove
the console workarounds.

Thanks,

C.

Changes in v2:

 - Redirected all console output in console.log file
 - Added a "found" prefix when an expected string is captured
 - Used a user mode network backend in SDK tests
 - Changed the expected string to "login:" in buildroot tests
 
Cédric Le Goater (4):
  tests/functional: Introduce _console_read()
  tests/functional: Convert Aspeed aarch64 SDK tests
  tests/functional: Convert Aspeed arm SDK tests
  tests/functional: Remove sleep workarounds from Aspeed tests

 tests/avocado/machine_aspeed.py         | 202 ------------------------
 tests/functional/meson.build            |   2 +
 tests/functional/qemu_test/cmd.py       |  22 ++-
 tests/functional/test_aarch64_aspeed.py |  97 ++++++++++++
 tests/functional/test_arm_aspeed.py     |  79 ++++++++-
 5 files changed, 191 insertions(+), 211 deletions(-)
 delete mode 100644 tests/avocado/machine_aspeed.py
 create mode 100644 tests/functional/test_aarch64_aspeed.py

-- 
2.47.0