mirror of
https://github.com/servo/servo.git
synced 2025-07-27 01:00:41 +01:00
Add HOST_FILE environment variable for test-wpt
This commit is contained in:
parent
19cd87aefc
commit
0aa727e5b6
3 changed files with 14 additions and 4 deletions
|
@ -30,8 +30,8 @@ class MachCommands(CommandBase):
|
|||
if self.context.built_tests:
|
||||
return
|
||||
returncode = Registrar.dispatch('build-tests', context=self.context)
|
||||
if returncode:
|
||||
sys.exit(returncode)
|
||||
if returncode:
|
||||
sys.exit(returncode)
|
||||
self.context.built_tests = True
|
||||
|
||||
def find_test(self, prefix):
|
||||
|
@ -235,7 +235,8 @@ class MachCommands(CommandBase):
|
|||
|
||||
processes = str(multiprocessing.cpu_count()) if processes is None else processes
|
||||
params = params + ["--processes", processes]
|
||||
hosts_file_path = path.join('tests', 'wpt', 'hosts')
|
||||
|
||||
return subprocess.call(
|
||||
["bash", path.join("tests", "wpt", "run.sh")] + params,
|
||||
env=self.build_env())
|
||||
env=self.build_env(hosts_file_path=hosts_file_path))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue