aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index a824f036217..18780b2ac01 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -40,7 +40,7 @@ from servo.command_base import (
call, check_call, check_output,
)
from servo_tidy_tests import test_tidy
-from servo.util import host_triple
+from servo.platform import host_triple
SCRIPT_PATH = os.path.split(__file__)[0]
PROJECT_TOPLEVEL_PATH = os.path.abspath(os.path.join(SCRIPT_PATH, "..", ".."))
@@ -836,6 +836,9 @@ testing/web-platform/mozilla/tests for Servo-only tests""" % reference_path)
@CommandArgument('params', nargs='...',
help="Command-line arguments to be passed through to Servo")
def smoketest(self, params):
- params = params + ['tests/html/close-on-load.html']
+ # We pass `-f` here so that any thread panic will cause Servo to exit,
+ # preventing a panic from hanging execution. This means that these kind
+ # of panics won't cause timeouts on CI.
+ params = params + ['-f', 'tests/html/close-on-load.html']
return self.context.commands.dispatch(
'run', self.context, params=params)