Bug 1084066 - plugins and extensions moved to wrong directory by mozharness. r=ted
This commit is contained in:
@@ -82,6 +82,5 @@ config = {
|
||||
"run_filename": "runxpcshelltests.py",
|
||||
"testsdir": "xpcshell"
|
||||
}
|
||||
},
|
||||
"mac_res_subdir": "MacOS"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -804,13 +804,6 @@ class XPCShellTests(object):
|
||||
self.headJSPath = self.testharnessdir.replace("\\", "/") + "/head.js"
|
||||
self.xpcshell = os.path.abspath(self.xpcshell)
|
||||
|
||||
# we assume that httpd.js lives in components/ relative to xpcshell
|
||||
self.httpdJSPath = os.path.join(os.path.dirname(self.xpcshell), 'components', 'httpd.js')
|
||||
self.httpdJSPath = self.httpdJSPath.replace('\\', '/')
|
||||
|
||||
self.httpdManifest = os.path.join(os.path.dirname(self.xpcshell), 'components', 'httpd.manifest')
|
||||
self.httpdManifest = self.httpdManifest.replace('\\', '/')
|
||||
|
||||
if self.xrePath is None:
|
||||
self.xrePath = os.path.dirname(self.xpcshell)
|
||||
if mozinfo.isMac:
|
||||
@@ -822,6 +815,13 @@ class XPCShellTests(object):
|
||||
else:
|
||||
self.xrePath = os.path.abspath(self.xrePath)
|
||||
|
||||
# httpd.js belongs in xrePath/components, which is Contents/Resources on mac
|
||||
self.httpdJSPath = os.path.join(self.xrePath, 'components', 'httpd.js')
|
||||
self.httpdJSPath = self.httpdJSPath.replace('\\', '/')
|
||||
|
||||
self.httpdManifest = os.path.join(self.xrePath, 'components', 'httpd.manifest')
|
||||
self.httpdManifest = self.httpdManifest.replace('\\', '/')
|
||||
|
||||
if self.mozInfo is None:
|
||||
self.mozInfo = os.path.join(self.testharnessdir, "mozinfo.json")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user