Add a HOST_FILE env variable and fix the wdspec setup errors that it causes

This commit is contained in:
George Roman 2019-07-19 10:14:47 +03:00
parent 5788e8c050
commit 1c4a35e22b
20 changed files with 5 additions and 230 deletions

View file

@ -396,7 +396,7 @@ class MachCommands(CommandBase):
def _test_wpt(self, android=False, **kwargs):
self.set_run_env(android)
hosts_file_path = path.join(self.context.topdir, 'tests', 'wpt', 'hosts')
os.environ["hosts_file_path"] = hosts_file_path
os.environ["HOST_FILE"] = hosts_file_path
run_file = path.abspath(path.join(self.context.topdir, "tests", "wpt", "run.py"))
return self.wptrunner(run_file, **kwargs)