Bug 1192484 - Remove bogus assert to fix selection without paths or tags in mach try. r=ahal
authorChris Manchester <cmanchester@mozilla.com>
Sat, 08 Aug 2015 22:12:01 -0700
changeset 257132 c997abf7973fe8363b03163960804e6cb24359c2
parent 257131 c4ab17503c0985da0e03f13a7331f216c3661ecc
child 257133 e3df76ef5e44e464c317e9679d41650b64e9bbfb
push id63527
push usercmanchester@mozilla.com
push dateMon, 10 Aug 2015 22:10:12 +0000
treeherdermozilla-inbound@c997abf7973f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1192484
milestone43.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 1192484 - Remove bogus assert to fix selection without paths or tags in mach try. r=ahal
testing/tools/autotry/autotry.py
--- a/testing/tools/autotry/autotry.py
+++ b/testing/tools/autotry/autotry.py
@@ -33,17 +33,19 @@ class AutoTry(object):
         self.mach_context = mach_context
 
         if os.path.exists(os.path.join(self.topsrcdir, '.hg')):
             self._use_git = False
         else:
             self._use_git = True
 
     def resolve_manifests(self, paths=None, tags=None):
-        assert tags or paths
+        if not paths or tags:
+            return {}
+
         tests = list(self.resolver.resolve_tests(tags=tags,
                                                  paths=paths,
                                                  cwd=self.mach_context.cwd))
         manifests_by_flavor = defaultdict(set)
 
         for t in tests:
             if t['flavor'] in AutoTry.test_flavors:
                 flavor = t['flavor']