From ef2da4b1517cf04c52205ed16202c4ae9dc93543 Mon Sep 17 00:00:00 2001 From: christophe-duc Date: Thu, 8 Jan 2026 19:18:50 -0400 Subject: [PATCH] modified test.sh --- test.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test.sh b/test.sh index 95e8e0d0..9b81a54e 100755 --- a/test.sh +++ b/test.sh @@ -3,8 +3,6 @@ set -e echo "" > coverage.txt -export GOFLAGS=-mod=vendor - # Use pure Go PGP implementation to avoid CGO dependency on gpgme # Exclude btrfs driver to avoid CGO dependency on libbtrfs BUILD_TAGS="-tags=containers_image_openpgp,exclude_graphdriver_btrfs" @@ -14,7 +12,7 @@ if command -v gotest; then use_go_test=true fi -for d in $( find ./* -maxdepth 10 ! -path "./vendor*" ! -path "./.git*" ! -path "./scripts*" -type d); do +for d in $( find ./* -maxdepth 10 ! -path "./.git*" ! -path "./scripts*" -type d); do if ls $d/*.go &> /dev/null; then args="$BUILD_TAGS -coverprofile=profile.out -covermode=atomic $d" if [ "$use_go_test" == true ]; then @@ -27,4 +25,4 @@ for d in $( find ./* -maxdepth 10 ! -path "./vendor*" ! -path "./.git*" ! -path rm profile.out fi fi -done +done \ No newline at end of file