about summary refs log tree commit diff
path: root/ci
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2018-12-10 06:27:19 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2018-12-10 08:22:07 +0100
commit7bcc2cd9c8d2933d4a72e090db72f65a4cfb749e (patch)
treea026514424a9da71ca1c89a748a3fefc27380623 /ci
parent435299be3062c67dc3c61b36c5e30bbfa876ee1e (diff)
downloadrust-7bcc2cd9c8d2933d4a72e090db72f65a4cfb749e.tar.gz
rust-7bcc2cd9c8d2933d4a72e090db72f65a4cfb749e.zip
update test stderr
Diffstat (limited to 'ci')
-rwxr-xr-xci/base-tests.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/ci/base-tests.sh b/ci/base-tests.sh
index 6eeab6671cb..dfc5ad99e0c 100755
--- a/ci/base-tests.sh
+++ b/ci/base-tests.sh
@@ -28,6 +28,9 @@ cd clippy_dev && cargo test && cd ..
 ./util/dev update_lints --check
 cargo +nightly fmt --all -- --check
 
+
+#avoid loop spam
+set +ex
 # make sure tests are formatted
 
 # some lints are sensitive to formatting, exclude some files
@@ -36,7 +39,9 @@ for file in `find tests -not -path "tests/ui/methods.rs" -not -path "tests/ui/fo
 rustfmt ${file} --check  || echo "${file} needs reformatting!" ; needs_formatting=true
 done
 
-if $needs_reformatting
-    "Tests need reformatting!"
+if [ "${needs_reformatting}" = true] ; then
+    echo "Tests need reformatting!"
     exit 2
 fi
+
+set -ex