test: disable echo earlier

This commit is contained in:
Yu Watanabe
2022-06-28 06:31:49 +09:00
parent 156ba52b43
commit 386427cfcf

View File

@@ -4,10 +4,10 @@
# utility functions for shell tests
assert_true() {(
local rc
set +ex
local rc
"$@"
rc=$?
if [[ $rc -ne 0 ]]; then
@@ -47,10 +47,10 @@ assert_not_in() {(
)}
assert_rc() {(
local rc exp="${1?}"
set +ex
local rc exp="${1?}"
shift
"$@"
rc=$?