Bug 1408204: Always use MOZILLA_REPO from client.py in automation. draft
authorTom Prince <mozilla@hocat.ca>
Thu, 12 Oct 2017 17:12:58 -0600
changeset 22809 40d35fa6e6903c30d85268b7be366bdd3922a562
parent 22808 e8fac029f7e443867fde96aa62c6a4d1057b46cf
push id108
push userbmo:mozilla@hocat.ca
push dateThu, 12 Oct 2017 23:13:22 +0000
bugs1408204
Bug 1408204: Always use MOZILLA_REPO from client.py in automation. MozReview-Commit-ID: 97HGs0wXOs
client.py
--- a/client.py
+++ b/client.py
@@ -510,17 +510,18 @@ def fixup_comm_repo_options(options):
 
 
 def fixup_mozilla_repo_options(options):
     """Handle special case: initial checkout of Mozilla.
 
     See fixup_comm_repo_options().
     """
     if options.mozilla_repo is None:
-        if not os.path.exists(os.path.join(topsrcdir, 'mozilla')):
+        if (os.environ.get('MOZ_AUTOMATION') == '1'
+                or not os.path.exists(os.path.join(topsrcdir, 'mozilla'))):
             options.mozilla_repo = DEFAULTS['MOZILLA_REPO']
         else:
             # Fallback to using .hgrc as hgtool/share needs the repo
             import ConfigParser
             config = ConfigParser.ConfigParser()
             config_path = os.path.join(topsrcdir, 'mozilla', '.hg', 'hgrc')
             config.read([config_path])
             if not config.has_option('paths', 'default'):