Commits

Ronny Pfannschmidt  committed 4c6c90e

testrunner: simplify error detection

  • Participants
  • Parent commits 424366f
  • Branches refine-testrunner

Comments (0)

Files changed (1)

File testrunner/util.py

     # contains "F", "E" or "P" then it's a regular failure, otherwise
     # we have to report it.
     for line in logdata.splitlines():
-        if (line.startswith('F ') or
-            line.startswith('E ') or
-            line.startswith('P ')):
+        if line[:2] in ('F ', 'E ', 'P '):
             return False
     return True