From 2113b77635f856f922e47e7b09e9d05fd556fb92 Mon Sep 17 00:00:00 2001 From: Anthony Romano Date: Mon, 11 Apr 2016 09:54:55 -0700 Subject: [PATCH] test: display unused output if unused source found unused will non-zero exit if it finds unused source which causes test's set -e to close out of the test script --- test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test b/test index 840267c95..7c1f9c547 100755 --- a/test +++ b/test @@ -134,7 +134,7 @@ function fmt_tests { if which unused >/dev/null; then echo "unused is installed..." for path in $GOSIMPLE_UNUSED_PATHS; do - unusedResult=$(unused $REPO_PATH/${path}) + unusedResult=`unused $REPO_PATH/${path} || true` if [ -n "${unusedResult}" ]; then echo -e "unused checking ${path} failed:\n${unusedResult}" exit 255