From: Yu Watanabe Date: Mon, 27 Jun 2022 21:31:49 +0000 (+0900) Subject: test: disable echo earlier X-Git-Tag: v252-rc1~479^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=386427cfcfbec2b6ee62c97689263be53822cfcf;p=thirdparty%2Fsystemd.git test: disable echo earlier --- 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=$?