tests/avocado: add timeout to the aspeed tests

On some systems the test can hang. At least defining a timeout stops
it from hanging forever.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220811151413.3350684-7-alex.bennee@linaro.org>
This commit is contained in:
Alex Bennée 2022-08-11 16:14:11 +01:00
parent 52f0c16076
commit b1ceae2f5b
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ class AST1030Machine(QemuSystemTest):
class AST2x00Machine(QemuSystemTest): class AST2x00Machine(QemuSystemTest):
timeout = 90
def wait_for_console_pattern(self, success_message, vm=None): def wait_for_console_pattern(self, success_message, vm=None):
wait_for_console_pattern(self, success_message, wait_for_console_pattern(self, success_message,
failure_message='Kernel panic - not syncing', failure_message='Kernel panic - not syncing',