OSDN Git Service

tests/avocado: add timeout to the aspeed tests
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 11 Aug 2022 15:14:11 +0000 (16:14 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 16 Aug 2022 08:57:12 +0000 (09:57 +0100)
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>

tests/avocado/machine_aspeed.py

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