reduce test verbosity

ADP-216_sops_automation
LeeW 10 months ago
parent 8f2270fe56
commit 1f5776d566

@ -46,7 +46,7 @@ if [[ 1 -eq 1 ]]; then
echo "TEST RC: $?" echo "TEST RC: $?"
# teardown # teardown
# enmesh: restore, since this particular one is checked in # enmesh: restore, since this particular one is checked in
git checkout "${PWD}/.sops.yaml" git checkout "${PWD}/.sops.yaml" > /dev/null 2>&1
rm "${repo_root}/.sops.yaml" rm "${repo_root}/.sops.yaml"
else else
>&2 echo "# INFO: skipping ...." >&2 echo "# INFO: skipping ...."
@ -59,7 +59,7 @@ if [[ 1 -eq 1 ]]; then
# note: fail if for any reason sops config defined at top level; this repo should not have this! # note: fail if for any reason sops config defined at top level; this repo should not have this!
test ! -e "${repo_root}/.sops.yaml" test ! -e "${repo_root}/.sops.yaml"
rm "${PWD}/.sops.yaml" || : rm "${PWD}/.sops.yaml" || :
../bin/update_sops.sh -c "${PWD}" -s "${secrets_file}" ../bin/update_sops.sh -c "${PWD}" -s "${secrets_file}" > /dev/null 2>&1
test -e "${PWD}/.sops.yaml" test -e "${PWD}/.sops.yaml"
test ! -e "${repo_root}/.sops.yaml" test ! -e "${repo_root}/.sops.yaml"
set +x set +x

Loading…
Cancel
Save