Bug 1370461 - Support --parallel-stylo-traversal for wpt in mozharness, r=ahal

MozReview-Commit-ID: 86BVRyj7qlz

--HG--
extra : rebase_source : b31ec1bbb2a8bb692be4a6fa6267716ea0829614
This commit is contained in:
James Graham 2017-06-06 14:12:39 +01:00
Родитель b1a2201e14
Коммит 0e04bd4047
1 изменённых файлов: 9 добавлений и 6 удалений

Просмотреть файл

@ -56,18 +56,18 @@ class WebPlatformTest(TestingMixin, MercurialScript, BlobUploadMixin, CodeCovera
"default": False,
"help": "Permits a software GL implementation (such as LLVMPipe) to use the GL compositor."}
],
[["--enable-webrender"], {
"action": "store_true",
"dest": "enable_webrender",
"default": False,
"help": "Tries to enable the WebRender compositor."}
],
[["--parallel-stylo-traversal"], {
"action": "store_true",
"dest": "parallel_stylo_traversal",
"default": False,
"help": "Forcibly enable parallel traversal in Stylo with STYLO_THREADS=4"}
],
[["--enable-webrender"], {
"action": "store_true",
"dest": "enable_webrender",
"default": False,
"help": "Tries to enable the WebRender compositor."}
]
] + copy.deepcopy(testing_config_options) + \
copy.deepcopy(blobupload_config_options) + \
copy.deepcopy(code_coverage_config_options)
@ -170,6 +170,9 @@ class WebPlatformTest(TestingMixin, MercurialScript, BlobUploadMixin, CodeCovera
if not c["e10s"]:
cmd.append("--disable-e10s")
if c["parallel_stylo_traversal"]:
cmd.append("--stylo-threads=4")
for opt in ["total_chunks", "this_chunk"]:
val = c.get(opt)
if val: