harness: exit with non-zero when tests fail
authorSimon Gerber <simon.gerber@inf.ethz.ch>
Wed, 30 Nov 2016 16:21:20 +0000 (17:21 +0100)
committerSimon Gerber <simon.gerber@inf.ethz.ch>
Wed, 30 Nov 2016 16:21:27 +0000 (17:21 +0100)
Signed-off-by: Simon Gerber <simon.gerber@inf.ethz.ch>

tools/harness/scalebench.py

index 6ecf527..4025768 100755 (executable)
@@ -361,6 +361,8 @@ class Scalebench:
             debug.log('Failed tests:')
             for t in [ t for t in testcases if not self.testcase_passed(t) ]:
                 debug.log(' * %s' % self.testcase_name(t))
+            # return False if we had test failures
+            retval = False
         debug.log('all done!')
         return retval