aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorawlnx <alecweber1994@gmail.com>2015-02-18 18:11:22 -0500
committerawlnx <alecweber1994@gmail.com>2015-02-18 18:11:22 -0500
commitd8f1c10179e16efa64169cee7f5562c765cd94bd (patch)
tree7ca8032fa15666144d73174dd487f43aa8f1505b /python
parent25678f9c2f220fbbfaad61e3d3b53aa39428d53b (diff)
downloadservo-d8f1c10179e16efa64169cee7f5562c765cd94bd.tar.gz
servo-d8f1c10179e16efa64169cee7f5562c765cd94bd.zip
fixes issue #4103
Diffstat (limited to 'python')
-rw-r--r--python/servo/testing_commands.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index ab1337a9f4f..562c103de0d 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -1,6 +1,7 @@
from __future__ import print_function, unicode_literals
import argparse
+import sys
import os
import os.path as path
import subprocess
@@ -27,7 +28,9 @@ class MachCommands(CommandBase):
def ensure_built_tests(self):
if self.context.built_tests:
return
- Registrar.dispatch('build-tests', context=self.context)
+ returncode = Registrar.dispatch('build-tests', context=self.context)
+ if returncode:
+ sys.exit(returncode)
self.context.built_tests = True
def find_test(self, prefix):
@@ -180,7 +183,6 @@ class MachCommands(CommandBase):
def test_content(self, test_name=None):
self.ensure_bootstrapped()
self.ensure_built_tests()
-
test_path = path.join(self.context.topdir, "tests", "content")
test_args = ["--source-dir=%s" % test_path]