Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
1.9 KiB
Diff
53 lines
1.9 KiB
Diff
diff --git a/test/stack-spec.sh b/test/stack-spec.sh
|
|
index f04a10c..1165953 100755
|
|
--- a/test/stack-spec.sh
|
|
+++ b/test/stack-spec.sh
|
|
@@ -72,28 +72,30 @@ describe "_bma_stack_template_arg:" "$(
|
|
|
|
)"
|
|
|
|
-[[ -d cloudformation/params ]] || mkdir -p cloudformation/params
|
|
+TEST_DIR=$(mktemp -d)
|
|
+
|
|
+[[ -d "$TEST_DIR"/cloudformation/params ]] || mkdir -p "$TEST_DIR"/cloudformation/params
|
|
|
|
|
|
# templates
|
|
touch \
|
|
- $(dirname $0)/cloudformation/great-app.json \
|
|
- $(dirname $0)/cloudformation/great-app.yml \
|
|
- $(dirname $0)/cloudformation/great-app.yaml \
|
|
+ "$TEST_DIR"/cloudformation/great-app.json \
|
|
+ "$TEST_DIR"/cloudformation/great-app.yml \
|
|
+ "$TEST_DIR"/cloudformation/great-app.yaml \
|
|
|
|
# params
|
|
|
|
[[ -d params ]] || mkdir params
|
|
|
|
touch \
|
|
- $(dirname $0)/cloudformation/great-app-params.json \
|
|
- $(dirname $0)/cloudformation/great-app-params-staging.json \
|
|
- $(dirname $0)/cloudformation/great-app-params-another-env.json \
|
|
- $(dirname $0)/cloudformation/params/great-app-params.json \
|
|
- $(dirname $0)/cloudformation/params/great-app-params-staging.json \
|
|
- $(dirname $0)/cloudformation/params/great-app-params-another-env.json
|
|
+ "$TEST_DIR"/cloudformation/great-app-params.json \
|
|
+ "$TEST_DIR"/cloudformation/great-app-params-staging.json \
|
|
+ "$TEST_DIR"/cloudformation/great-app-params-another-env.json \
|
|
+ "$TEST_DIR"/cloudformation/params/great-app-params.json \
|
|
+ "$TEST_DIR"/cloudformation/params/great-app-params-staging.json \
|
|
+ "$TEST_DIR"/cloudformation/params/great-app-params-another-env.json
|
|
|
|
-cd $(dirname $0)/cloudformation
|
|
+cd "$TEST_DIR"/cloudformation
|
|
|
|
describe "_bma_stack_args:" "$(
|
|
context "without an argument" "$(
|
|
@@ -115,3 +117,5 @@ describe "_bma_stack_args:" "$(
|
|
)"
|
|
|
|
cd -
|
|
+
|
|
+rm -rf "$TEST_DIR"
|