mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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 config = parse_config(args);
|
||||||
let opts = test_options(config.clone());
|
let opts = test_options(config.clone());
|
||||||
let tests = find_tests(config);
|
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 {
|
fn parse_config(args: ~[~str]) -> Config {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue