reduce test verbosity/fix useless statement

the '$?' would just be reflecting status of 'set +x'
ADP-216_sops_automation
LeeW 10 months ago
parent 4e8790f8ca
commit 4d898a33c2

@ -41,7 +41,6 @@ if [[ 1 -eq 1 ]]; then
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
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" > /dev/null 2>&1 git checkout "${PWD}/.sops.yaml" > /dev/null 2>&1
@ -62,7 +61,6 @@ if [[ 1 -eq 1 ]]; then
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
echo "TEST RC: $?"
# teardown # teardown
# not necessary, all tracked in git # not necessary, all tracked in git
# enmesh: restore, since this particular one is checked in # enmesh: restore, since this particular one is checked in
@ -77,7 +75,6 @@ if [[ 1 -eq 1 ]]; then
set -x set -x
../bin/update_sops.sh -k "${keys_dir}" -c "${sops_cfg_dir}" -s "${secrets_file}" "${secrets_file}" > /dev/null 2>&1 ../bin/update_sops.sh -k "${keys_dir}" -c "${sops_cfg_dir}" -s "${secrets_file}" "${secrets_file}" > /dev/null 2>&1
set +x set +x
echo "TEST RC: $?"
# teardown # teardown
# not necessary, all tracked in git # not necessary, all tracked in git
# enmesh: restore, since this particular one is checked in # enmesh: restore, since this particular one is checked in

Loading…
Cancel
Save