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 281504 572d0d046629a59507103baf6acf6f4f7783b48d
parent 281503 7d1f9b0f20d38ffa52b2c08354e5bce7d3e5046e
child 281505 9e891e54171fa1d8fa8e112d65d4e77a0b7cc27a
push id3885
push userbcampen@mozilla.com
push dateWed, 29 Jul 2015 18:32:33 +0000
reviewersme
bugs1188698
milestone42.0a1
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'