[rtems-tools commit] testing: Print the output after the result. Easier to find and review failures.

Chris Johns chrisj at rtems.org
Wed Oct 11 11:51:08 UTC 2017


Module:    rtems-tools
Branch:    master
Commit:    0eb84005f45314c6eb61c809578bfef2eab2563c
Changeset: http://git.rtems.org/rtems-tools/commit/?id=0eb84005f45314c6eb61c809578bfef2eab2563c

Author:    Chris Johns <chrisj at rtems.org>
Date:      Wed Oct 11 22:48:46 2017 +1100

testing: Print the output after the result. Easier to find and review failures.

---

 tester/rt/report.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tester/rt/report.py b/tester/rt/report.py
index d5bfd48..97eb80f 100644
--- a/tester/rt/report.py
+++ b/tester/rt/report.py
@@ -193,9 +193,11 @@ class report(object):
             exe = path.basename(self.results[name]['exe'])
             result = self.results[name]['result']
             time = self.results[name]['end'] - self.results[name]['start']
+            failed = result in ['failed', 'timeout', 'invalid']
+            result = 'Result: %-10s Time: %s %s' % (result, str(time), exe)
             if mode != 'none':
                 header = self.results[name]['header']
-            if mode == 'all' or result in ['failed', 'timeout', 'invalid']:
+            if mode == 'all' or failed:
                 output = self.results[name]['output']
             else:
                 output = None
@@ -203,8 +205,8 @@ class report(object):
             if header:
                 log.output(header)
             if output:
+                log.output(result)
                 log.output(output)
-                log.output('Result: %-10s Time: %s %s' % (result, str(time), exe))
 
     def summary(self):
         def show_state(results, state, max_len):




More information about the vc mailing list