From 386427cfcfbec2b6ee62c97689263be53822cfcf Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 28 Jun 2022 06:31:49 +0900 Subject: [PATCH] test: disable echo earlier --- test/units/assert.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/units/assert.sh b/test/units/assert.sh index 66357ab688b..2f4d93ab8cd 100644 --- a/test/units/assert.sh +++ b/test/units/assert.sh @@ -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=$? -- 2.47.3