[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 7/8] tests/avocado: apply a band aid to aspeed-evb login
From: |
Alex Bennée |
Subject: |
[PATCH v1 7/8] tests/avocado: apply a band aid to aspeed-evb login |
Date: |
Thu, 11 Aug 2022 16:14:12 +0100 |
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>
---
tests/avocado/machine_aspeed.py | 2 ++
1 file changed, 2 insertions(+)
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 @@ def do_test_arm_aspeed_buidroot_start(self, image, cpu_id):
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)
--
2.30.2
- [PATCH for 7.1 v1 0/8] memory leaks and speed tweaks, Alex Bennée, 2022/08/11
- [PATCH v1 4/8] cputlb: used cached CPUClass in our hot-paths, Alex Bennée, 2022/08/11
- [PATCH v1 3/8] hw/core/cpu-sysemu: used cached class in cpu_asidx_from_attrs, Alex Bennée, 2022/08/11
- [PATCH v1 7/8] tests/avocado: apply a band aid to aspeed-evb login,
Alex Bennée <=
- [PATCH v1 2/8] cpu: cache CPUClass in CPUState for hot code paths, Alex Bennée, 2022/08/11
- [PATCH v1 5/8] ssi: cache SSIPeripheralClass to avoid GET_CLASS(), Alex Bennée, 2022/08/11
- [PATCH v1 1/8] linux-user: un-parent OBJECT(cpu) when closing thread, Alex Bennée, 2022/08/11
- [PATCH v1 6/8] tests/avocado: add timeout to the aspeed tests, Alex Bennée, 2022/08/11
- [PATCH v1 8/8] accel/tcg: remove trace_vcpu_dstate TB checking, Alex Bennée, 2022/08/11