Browse Source

[Scripts/regression] Log ignored failure in one line

This makes parsing the output easier visually as well as by machine.
Simon Gaiser 5 years ago
parent
commit
f8d516bdb4
1 changed files with 5 additions and 5 deletions
  1. 5 5
      Scripts/regression.py

+ 5 - 5
Scripts/regression.py

@@ -82,15 +82,15 @@ class Regression:
                     if run_times == times:
                         result = check(outputs)
                         if result:
-                            print '\033[92m[Success]\033[0m', name
+                            print '\033[92m[Success       ]\033[0m', name
                         else:
-                            print '\033[93m[Fail   ]\033[0m', name
-                            if timed_out : print 'Test timed out!'
-                            keep_log = True
                             if ignore_failure:
-                                print '   Ignoring failure.'
+                                print '[Fail (Ignored)]', name
                             else:
+                                print '\033[93m[Fail          ]\033[0m', name
                                 something_failed = 1
+                            if timed_out : print 'Test timed out!'
+                            keep_log = True
                             
                 if self.keep_log and keep_log:
                     sargs = [re.sub(r"\W", '_', a).strip('_') for a in args]