Bug 1415618: When looking for a downloaded mozharness config, only look where it was put. r=jlund
authorTom Prince <mozilla@hocat.ca>
Sat, 11 Nov 2017 13:18:24 -0700
changeset 392108 501306f6fc2251fa251f1071b2eee31ddb44ba52
parent 392107 623f97519d814fcc6554deeeff706fe15d176f9e
child 392109 1258a1b9888f370c761bf1307d0e6f174bbdf02c
push id32910
push userrgurzau@mozilla.com
push dateThu, 16 Nov 2017 10:02:59 +0000
treeherdermozilla-central@9941e68b5a53 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlund
bugs1415618
milestone59.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 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
                     )