From 0aa727e5b6437e3b1dc5377ba932c15f4b7b41c6 Mon Sep 17 00:00:00 2001 From: Daniel Le Date: Sat, 14 Mar 2015 18:45:34 +0800 Subject: Add HOST_FILE environment variable for test-wpt --- python/servo/testing_commands.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'python/servo/testing_commands.py') diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 95dd71af1e9..ac1c2b13f49 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -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)) -- cgit v1.2.3