We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01873e3 commit a5f1c17Copy full SHA for a5f1c17
1 file changed
scripts/terraform_test_all.sh
@@ -27,7 +27,7 @@ fi
27
if [[ "${SHARED_CHANGED:-false}" == "true" ]]; then
28
echo "==> Shared infrastructure changed"
29
echo "==> Running all tests for safety"
30
- mapfile -t test_dirs < <(find . -type f -name "*.tftest.hcl" -print0 | xargs -0 -I{} dirname {} | sort -u)
+ mapfile -t test_dirs < <(find . -not -path '*/.terraform/*' -type f -name "*.tftest.hcl" -print0 | xargs -0 -I{} dirname {} | sort -u)
31
elif [[ -z "${MODULE_CHANGED_FILES:-}" ]]; then
32
echo "✓ No module files changed, skipping tests"
33
exit 0
@@ -70,7 +70,7 @@ else
70
if [[ ! " ${test_dirs[*]} " =~ " $test_dir " ]]; then
71
test_dirs+=("$test_dir")
72
fi
73
- done < <(find "$module_dir" -type f -name "*.tftest.hcl")
+ done < <(find "$module_dir" -not -path '*/.terraform/*' -type f -name "*.tftest.hcl")
74
done
75
76
0 commit comments