mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
Bug 1239808 - Fix mozharness mach command for test_packages.json retrieval. r=jlund
MozReview-Commit-ID: 7jxV7VuI9rS --HG-- extra : rebase_source : b670a2e7f73c423825440add02415120e8da34d1
This commit is contained in:
parent
c5eae82e98
commit
a6756a5e68
@ -37,7 +37,7 @@ class MozharnessRunner(MozbuildObject):
|
||||
MozbuildObject.__init__(self, *args, **kwargs)
|
||||
|
||||
|
||||
self.test_packages_url = os.path.join(self.topobjdir, "dist", "test_packages.json")
|
||||
self.test_packages_url = self._test_packages_url()
|
||||
self.installer_url = self._installer_url()
|
||||
|
||||
desktop_unittest_config = [
|
||||
@ -171,6 +171,12 @@ class MozharnessRunner(MozbuildObject):
|
||||
assert len(filenames) == 1
|
||||
return self.path_to_url(os.path.join(dist_path, filenames[0]))
|
||||
|
||||
def _test_packages_url(self):
|
||||
dist_path = os.path.join(self.topobjdir, "dist")
|
||||
filenames = [item for item in os.listdir(dist_path) if
|
||||
item.endswith('test_packages.json')]
|
||||
assert len(filenames) == 1
|
||||
return self.path_to_url(os.path.join(dist_path, filenames[0]))
|
||||
|
||||
def config_path(self, *parts):
|
||||
return self.path_to_url(os.path.join(self.topsrcdir, "testing", "mozharness",
|
||||
|
Loading…
Reference in New Issue
Block a user