mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 18:19:36 +00:00
tests/smoke: Be sure terraform destroy runs
This commit is contained in:
@@ -71,8 +71,11 @@ cleanup() {
|
||||
if [[ -z "$TERRAFORM_PID" ]]; then
|
||||
kill $TERRAFORM_PID
|
||||
fi
|
||||
rm -rf examples/terraform/bootkube-install/assets
|
||||
rm -f examples/terraform/bootkube-install/*.tfstate*
|
||||
pushd examples/terraform/bootkube-install
|
||||
echo "yes" | terraform destroy || true
|
||||
rm -f *.tfstate*
|
||||
rm -rf assets
|
||||
popd
|
||||
}
|
||||
|
||||
main $@
|
||||
|
||||
@@ -39,7 +39,10 @@ cleanup() {
|
||||
./scripts/libvirt destroy || true
|
||||
./scripts/devnet destroy || true
|
||||
rkt gc --grace-period=0
|
||||
rm -f examples/terraform/etcd3-install/*.tfstate*
|
||||
pushd examples/terraform/etcd3-install
|
||||
echo "yes" | terraform destroy || true
|
||||
rm -f *.tfstate*
|
||||
popd
|
||||
}
|
||||
|
||||
main $@
|
||||
|
||||
Reference in New Issue
Block a user