mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-25 05:14:27 +00:00
add check for failed tests
This commit is contained in:
parent
81a1d46723
commit
31fbf34439
@ -43,7 +43,7 @@ function check_fmt_with_lib_tests {
|
||||
function check_fmt_base {
|
||||
local test_args="$1"
|
||||
local build=$(cargo test $test_args 2>&1)
|
||||
if [[ "$build" =~ "build failed" ]]; then
|
||||
if [[ "$build" =~ "build failed" ]] || [[ "$build" =~ "test result: FAILED." ]]; then
|
||||
return 0
|
||||
fi
|
||||
touch rustfmt.toml
|
||||
|
Loading…
Reference in New Issue
Block a user