mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1224305 - Add an option to the mochitest harness to provide a copy of the extra chrome manifest it writes. r=ahal
This commit is contained in:
parent
2a6a9f4abe
commit
384b3737c7
@ -394,6 +394,13 @@ class MochitestArguments(ArgumentContainer):
|
||||
"default": False,
|
||||
"help": "Run tests with electrolysis preferences and test filtering enabled.",
|
||||
}],
|
||||
[["--store-chrome-manifest"],
|
||||
{"action": "store",
|
||||
"help": "Destination path to write a copy of any chrome manifest "
|
||||
"written by the harness.",
|
||||
"default": None,
|
||||
"suppress": True,
|
||||
}],
|
||||
[["--strict-content-sandbox"],
|
||||
{"action": "store_true",
|
||||
"default": False,
|
||||
@ -669,6 +676,13 @@ class MochitestArguments(ArgumentContainer):
|
||||
parser.error(
|
||||
"--debugger-args requires --debugger.")
|
||||
|
||||
if options.store_chrome_manifest:
|
||||
options.store_chrome_manifest = os.path.abspath(options.store_chrome_manifest)
|
||||
if not os.path.isdir(os.path.dirname(options.store_chrome_manifest)):
|
||||
parser.error(
|
||||
"directory for %s does not exist as a destination to copy a "
|
||||
"chrome manifest." % options.store_chrome_manifest)
|
||||
|
||||
if options.testingModulesDir is None:
|
||||
if build_obj:
|
||||
options.testingModulesDir = os.path.join(
|
||||
|
@ -905,6 +905,8 @@ class MochitestUtilsMixin(object):
|
||||
if options.testingModulesDir is not None:
|
||||
manifestFile.write("resource testing-common file:///%s\n" %
|
||||
options.testingModulesDir)
|
||||
if options.store_chrome_manifest:
|
||||
shutil.copyfile(manifest, options.store_chrome_manifest)
|
||||
return manifest
|
||||
|
||||
def addChromeToProfile(self, options):
|
||||
|
Loading…
Reference in New Issue
Block a user