From 78729fc69890b324b075697a35832577b0654a02 Mon Sep 17 00:00:00 2001 From: kslr Date: Sat, 20 Jun 2020 16:09:42 +0800 Subject: [PATCH] improve test coverage --- testing/coverage/coverall2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/coverage/coverall2 b/testing/coverage/coverall2 index 57cffc4cf..8491ea5b5 100755 --- a/testing/coverage/coverall2 +++ b/testing/coverage/coverall2 @@ -19,13 +19,13 @@ if [ -f "${TEST_FILES[0]}" ]; then test_package "" fi -while IFS= read -r -d '' DIR -do +# shellcheck disable=SC2044 +for DIR in $(find ./* -type d ! -path "*.git*" ! -path "*vendor*" ! -path "*external*"); do TEST_FILES=("$DIR"/*_test.go) if [ -f "${TEST_FILES[0]}" ]; then test_package "/$DIR" fi -done < <(find ./* -type d ! -path "*.git*" ! -path "*vendor*" ! -path "*external*" -print0) +done # merge out while IFS= read -r -d '' OUT_FILE