bug 1188698 - Do not fail when succeed count is 0. r=me
authorAus Lacroix <aus@mozilla.com>
Tue, 28 Jul 2015 19:20:40 -0700
changeset 286800 572d0d046629a59507103baf6acf6f4f7783b48d
parent 286799 7d1f9b0f20d38ffa52b2c08354e5bce7d3e5046e
child 286801 9e891e54171fa1d8fa8e112d65d4e77a0b7cc27a
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1188698
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1188698 - Do not fail when succeed count is 0. r=me
testing/mozharness/mozharness/mozilla/testing/gaia_test.py
--- a/testing/mozharness/mozharness/mozilla/testing/gaia_test.py
+++ b/testing/mozharness/mozharness/mozilla/testing/gaia_test.py
@@ -207,17 +207,20 @@ class GaiaTest(TestingMixin, MercurialSc
         pass
 
     def publish(self, code, passed=None, failed=None):
         """
         Publish the results of the test suite.
         """
         if code == 0:
             level = INFO
-            if passed == 0 or failed > 0:
+            # We used to check for passed == 0 as well but it can
+            # be normal to end up with empty chunks especially when
+            # large amounts of tests are disabled.
+            if failed > 0:
                 status = 'test failures'
                 tbpl_status = TBPL_WARNING
             else:
                 status = 'success'
                 tbpl_status = TBPL_SUCCESS
         elif code == 10:
             level = INFO
             status = 'test failures'