소스 검색

Merge pull request #5035 from heyitsanthony/fix-unused-output

test: display unused output if unused source found
Anthony Romano 9 년 전
부모
커밋
b97b5843a3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      test

+ 1 - 1
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