Bug 1032255 - TPS has to exit with code != 0 in case of failures. r=aeftimie, dhunt a=testonly DONTBUILD
authorCosmin Malutan <cosmin.malutan@softvision.ro>
Mon, 28 Jul 2014 06:28:00 +0200
changeset 208285 1b581df81c9b
parent 208284 6a7e6708ded1
child 208286 2e0eeb786e7d
push id3802
push userhskupin@mozilla.com
push date2014-08-11 13:50 +0000
treeherdermozilla-beta@1b581df81c9b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaeftimie, dhunt, testonly
bugs1032255
milestone32.0
Bug 1032255 - TPS has to exit with code != 0 in case of failures. r=aeftimie, dhunt a=testonly DONTBUILD
testing/tps/tps/cli.py
--- a/testing/tps/tps/cli.py
+++ b/testing/tps/tps/cli.py
@@ -111,10 +111,13 @@ def main():
                         logfile=options.logfile,
                         mobile=options.mobile,
                         resultfile=options.resultfile,
                         rlock=rlock,
                         testfile=testfile,
                       )
     TPS.run_tests()
 
+    if TPS.numfailed > 0 or TPS.numpassed == 0:
+        sys.exit(1)
+
 if __name__ == '__main__':
     main()