Don't fail integration tests if the subject is not passing its own tests

As suggested in https://github.com/rust-lang-nursery/rustfmt/pull/2715#issuecomment-390397152
This commit is contained in:
Nick Cameron 2018-06-18 20:17:07 +12:00
parent fc057c2979
commit 46601a3435

View File

@ -21,6 +21,10 @@ echo "Integration tests for: ${INTEGRATION}"
cargo fmt -- --version
function check_fmt {
cargo test --all
if [[ $? != 0 ]]; then
return 0
fi
touch rustfmt.toml
cargo fmt --all -v 2>&1 | tee rustfmt_output
if [[ $? != 0 ]]; then