harness: Exit test when we encounter a line starting with "Aborted"
authorSimon Gerber <simon.gerber@inf.ethz.ch>
Tue, 4 Oct 2016 14:36:20 +0000 (16:36 +0200)
committerSimon Gerber <simon.gerber@inf.ethz.ch>
Tue, 4 Oct 2016 14:36:20 +0000 (16:36 +0200)
Signed-off-by: Simon Gerber <simon.gerber@inf.ethz.ch>

tools/harness/tests/common.py

index aa6548c..f74916c 100644 (file)
@@ -148,10 +148,11 @@ class TestCommon(Test):
         return "client done"
 
     def is_finished(self, line):
-        # Exit test when we get an assertion failure, rather than waiting for
-        # timeout
+        # Exit test when we get an assertion failure or an abort, rather than
+        # waiting for timeout
         return line.startswith(self.get_finish_string()) or \
-               line.startswith("Assertion failed on core")
+               line.startswith("Assertion failed on core") or \
+               line.startswith("Aborted")
 
     def is_booted(self, line):
         # early boot output from Barrelfish kernel