Bug 1415618: When looking for a downloaded mozharness config, only look where it was put. r=jlund draft
authorTom Prince <mozilla@hocat.ca>
Sat, 11 Nov 2017 13:18:24 -0700
changeset 698841 08b3ecd32f4ba272a15ccb79faea621a2208f32b
parent 698840 10594729070e1e9e4865864b5c73e5008f0ff3e7
child 698842 77fb6c02d5e3f4e7011f0bef5ee22708145d3702
push id89369
push userbmo:mozilla@hocat.ca
push dateThu, 16 Nov 2017 04:26:10 +0000
reviewersjlund
bugs1415618
milestone59.0a1
Bug 1415618: When looking for a downloaded mozharness config, only look where it was put. r=jlund MozReview-Commit-ID: 7FfXXNzeeqW
testing/mozharness/mozharness/base/config.py
--- a/testing/mozharness/mozharness/base/config.py
+++ b/testing/mozharness/mozharness/base/config.py
@@ -435,17 +435,17 @@ class BaseConfig(object):
         all_cfg_files_and_dicts = []
         for cf in all_config_files:
             try:
                 if '://' in cf:  # config file is an url
                     file_name = os.path.basename(cf)
                     file_path = os.path.join(os.getcwd(), file_name)
                     download_config_file(cf, file_path)
                     all_cfg_files_and_dicts.append(
-                        (file_path, parse_config_file(file_path))
+                        (file_path, parse_config_file(file_path, search_path=["."]))
                     )
                 else:
                     all_cfg_files_and_dicts.append((cf, parse_config_file(cf)))
             except Exception:
                 if cf in options.opt_config_files:
                     print(
                         "WARNING: optional config file not found %s" % cf
                     )