Bug 1415618: When looking for a downloaded mozharness config, only look where it was put. r=jlund
☠☠ backed out by b89090531f6a ☠ ☠
authorTom Prince <mozilla@hocat.ca>
Sat, 11 Nov 2017 13:18:24 -0700
changeset 436652 be317382298705c63d0be2f4686eaa7ca513ea6c
parent 436651 967cec5ff7add524afa7e9a8a570e53e99b10ad3
child 436653 5ecdc55db739801216435854ce412694a8e0dca7
push id117
push userfmarier@mozilla.com
push dateTue, 28 Nov 2017 20:17:16 +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
                     )