mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
contenttest: Exit with non-zero status when tests fail
This makes buildbot reject commits with failing contenttests.
This commit is contained in:
parent
bce5285506
commit
895191c3a6
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,9 @@ fn main() {
|
|||
let config = parse_config(args);
|
||||
let opts = test_options(config.clone());
|
||||
let tests = find_tests(config);
|
||||
run_tests_console(&opts, tests);
|
||||
if !run_tests_console(&opts, tests) {
|
||||
os::set_exit_status(1);
|
||||
}
|
||||
}
|
||||
|
||||
fn parse_config(args: ~[~str]) -> Config {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue