Merge pull request #2793 from rust-lang-nursery/integr-test-fail

Don't fail integration tests if the subject is not passing its own tests
This commit is contained in:
Nick Cameron 2018-06-19 10:40:21 +12:00 committed by GitHub
commit a1c5c46986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,10 @@ cargo fmt -- --version
# * `cargo fmt --all -- --check` after formatting returns success
# * `cargo test -all` still passes (formatting did not break the build)
function check_fmt {
cargo test --all
if [[ $? != 0 ]]; then
return 0
fi
touch rustfmt.toml
cargo fmt --all -v |& tee rustfmt_output
if [[ ${PIPESTATUS[0]} != 0 ]]; then