From 46601a343554f7cc5f6e07b3fad9c3449816a417 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Mon, 18 Jun 2018 20:17:07 +1200 Subject: [PATCH] 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 --- ci/integration.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/integration.sh b/ci/integration.sh index 0bce1671d4e..e97af322693 100755 --- a/ci/integration.sh +++ b/ci/integration.sh @@ -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