diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2022-08-11 16:14:12 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2022-08-16 09:57:12 +0100 |
commit | 65711f9a87874a9ec61108c6009f8baec07c8b0d (patch) | |
tree | 2346d11174a1d4b0e81932b01a8aae5e74918d66 | |
parent | b1ceae2f5bc477217dd292bffa7b4abb34d78a2b (diff) |
tests/avocado: apply a band aid to aspeed-evb login
This is really a limitation of the underlying console code which
doesn't allow us to detect the login: and following "#" prompts
because it reads input line wise. By adding a small delay we ensure
that the login prompt has appeared so we don't accidentally spaff the
shell commands to a confused getty in the guest.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Acked-by: John Snow <jsnow@redhat.com>
Message-Id: <20220811151413.3350684-8-alex.bennee@linaro.org>
-rw-r--r-- | tests/avocado/machine_aspeed.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/avocado/machine_aspeed.py b/tests/avocado/machine_aspeed.py index c54da0fd8f..65d38f4efa 100644 --- a/tests/avocado/machine_aspeed.py +++ b/tests/avocado/machine_aspeed.py @@ -101,7 +101,9 @@ class AST2x00Machine(QemuSystemTest): self.wait_for_console_pattern('Starting kernel ...') self.wait_for_console_pattern('Booting Linux on physical CPU ' + cpu_id) self.wait_for_console_pattern('lease of 10.0.2.15') + # the line before login: self.wait_for_console_pattern('Aspeed EVB') + time.sleep(0.1) exec_command(self, 'root') time.sleep(0.1) |