From: Frantisek Sumsal Date: Mon, 8 Jul 2019 19:11:32 +0000 (+0200) Subject: test: drop || return 1 expression which is incompatible with set -e X-Git-Tag: v243-rc1~177^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc469c3dfc398210f38f819d367e68646c71d8da;p=thirdparty%2Fsystemd.git test: drop || return 1 expression which is incompatible with set -e The `set -e` option is incompatible with a subshell/compound command, which is followed by || . In such case, the -e option is ignored in all affected subshells/functions (see man bash(1) for command `set`). --- diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh index 0f29ad7eda7..a34e2adbe26 100755 --- a/test/TEST-01-BASIC/test.sh +++ b/test/TEST-01-BASIC/test.sh @@ -29,7 +29,7 @@ Type=oneshot EOF setup_testsuite - ) || return 1 + ) setup_nspawn_root ddebug "umount $TESTDIR/root" diff --git a/test/TEST-02-CRYPTSETUP/test.sh b/test/TEST-02-CRYPTSETUP/test.sh index aed1c591069..9d25e942500 100755 --- a/test/TEST-02-CRYPTSETUP/test.sh +++ b/test/TEST-02-CRYPTSETUP/test.sh @@ -75,7 +75,7 @@ EOF cat >>$initdir/etc/fstab <