From 94956017cdd693fa2235ee6c565ef111aed2eb04 Mon Sep 17 00:00:00 2001 From: LeeW Date: Mon, 17 Feb 2025 13:03:15 +0100 Subject: [PATCH] fix: iterate fix for sops.yaml not created in specified config dir --- verify/test.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/verify/test.sh b/verify/test.sh index 67f05be..d9a82e8 100755 --- a/verify/test.sh +++ b/verify/test.sh @@ -56,13 +56,17 @@ fi if [[ 0 -eq 1 ]]; then >&2 echo -e "# ---\n# TEST: create sops cfg in curdir: ${PWD}" echo "ERROR: failing right now" + set -x # note: fail if for any reason sops config defined at top level; this repo should not have this! test ! -e "${repo_root}/.sops.yaml" rm "${PWD}/.sops.yaml" || : ../bin/update_sops.sh -c "${PWD}" -s "${secrets_file}" test -e "${PWD}/.sops.yaml" test ! -e "${repo_root}/.sops.yaml" - echo $? + set +x + echo "TEST RC: $?" + # teardown + # not necessary, all tracked in git else >&2 echo "# INFO: skipping ...." fi