From d34522725dbdb86d1327e1121e4cb22ac0631c24 Mon Sep 17 00:00:00 2001 From: Leopere Date: Mon, 24 Mar 2025 15:42:42 -0400 Subject: [PATCH] Fix exclude patterns test to properly verify directory content exclusion --- test/test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.sh b/test/test.sh index 4b0df41..6656a82 100755 --- a/test/test.sh +++ b/test/test.sh @@ -237,11 +237,11 @@ run_exclude_patterns_test() { echo "Total files: $(find /tmp/exclude-extracted/test2 -type f | wc -l)" # Check that the excluded directories don't exist in the extracted archive - EXCLUDED_DIRS=$(find /tmp/exclude-extracted/test2 -path "*/temp" -o -path "*/bin" | wc -l) + EXCLUDED_DIRS=$(find /tmp/exclude-extracted/test2 -path "*/temp/*" -o -path "*/bin/*" | wc -l) if [ "$EXCLUDED_DIRS" -eq 0 ]; then - echo "SUCCESS: No temp/ or bin/ directories found in the extracted archive" + echo "SUCCESS: No contents of temp/ or bin/ directories found in the extracted archive" else - echo "ERROR: Found excluded directories in the extracted archive" + echo "ERROR: Found contents of excluded directories in the extracted archive" return 1 fi