mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1239808 - Fix mozharness mach command for test_packages.json retrieval. r=jlund
MozReview-Commit-ID: 7jxV7VuI9rS
This commit is contained in:
parent
cb4f63d4a3
commit
280b569aa9
@ -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