aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo
diff options
context:
space:
mode:
authorbors-servo <infra@servo.org>2023-05-19 03:52:08 +0200
committerGitHub <noreply@github.com>2023-05-19 03:52:08 +0200
commit42332e588849aa5451f81e976dea0d1c19ea7a1b (patch)
tree3b4a43b1e2506269d133d280609794bb619b2fe1 /python/servo
parent41007c56c44f5b3f39f236aac89f3b54b4848ebc (diff)
parent6e2d1bdc7932b50e8c6e0f20a05096c6b5863467 (diff)
downloadservo-42332e588849aa5451f81e976dea0d1c19ea7a1b.tar.gz
servo-42332e588849aa5451f81e976dea0d1c19ea7a1b.zip
Auto merge of #29751 - mrobinson:smoketest-panic, r=mukilan
Thread panics should be a hard-fail in smoketests This prevents, for instance, a script thread panic from hanging Servo and means those kind of panics won't cause CI to hang. Fixes #29749. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #29749. - [x] These changes do not require tests because they fix a test issue. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'python/servo')
-rw-r--r--python/servo/testing_commands.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index 9209e9240d8..01c5882ca2c 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -835,6 +835,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)