We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bbadd2 commit 5f595d3Copy full SHA for 5f595d3
scripts/terraform-test.sh
@@ -10,12 +10,16 @@ do
10
terraform -chdir=$f init -upgrade
11
~/.init-env
12
source ./.terraform_profile
13
+ echo "---> plan testing"
14
+ echo ""
15
cp scripts/plan.tftest.hcl $f/
16
terraform -chdir=$f test test -verbose
17
if [[ $? -ne 0 ]]; then
18
success=false
19
echo -e "\033[31m[ERROR]\033[0m: running terraform test for plan failed."
20
else
21
22
23
rm -rf scripts/plan.tftest.hcl
24
cp scripts/apply.tftest.hcl $f/
25
terraform -chdir=$f test test
@@ -27,7 +31,7 @@ do
27
31
fi
28
32
done
29
33
30
-if [[ $success ]]; then
34
+if [[ $success == "false" ]]; then
35
exit 1
36
37
exit 0
0 commit comments