1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

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 || <EXPR>. In such case, the -e option is ignored
in all affected subshells/functions (see man bash(1) for command `set`).
This commit is contained in:
Frantisek Sumsal 2019-07-08 21:11:32 +02:00
parent 71a0de36e5
commit cc469c3dfc
30 changed files with 30 additions and 30 deletions

View File

@ -29,7 +29,7 @@ Type=oneshot
EOF
setup_testsuite
) || return 1
)
setup_nspawn_root
ddebug "umount $TESTDIR/root"

View File

@ -75,7 +75,7 @@ EOF
cat >>$initdir/etc/fstab <<EOF
/dev/mapper/varcrypt /var ext4 defaults 0 1
EOF
) || return 1
)
ddebug "umount $TESTDIR/root/var"
umount $TESTDIR/root/var

View File

@ -44,7 +44,7 @@ EOF
cp test-jobs.sh $initdir/
setup_testsuite
) || return 1
)
setup_nspawn_root
ddebug "umount $TESTDIR/root"

View File

@ -46,7 +46,7 @@ EOF
cp test-journal.sh $initdir/
setup_testsuite
) || return 1
)
setup_nspawn_root
ddebug "umount $TESTDIR/root"

View File

@ -42,7 +42,7 @@ EOF
cp test-rlimits.sh $initdir/
setup_testsuite
) || return 1
)
setup_nspawn_root
ddebug "umount $TESTDIR/root"

View File

@ -92,7 +92,7 @@ EOF
dracut_install -o sesearch
dracut_install runcon
dracut_install checkmodule semodule semodule_package m4 make /usr/libexec/selinux/hll/pp load_policy sefcontext_compile
) || return 1
)
# mask some services that we do not want to run in these tests
ln -s /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service

View File

@ -40,7 +40,7 @@ EOF
cp test-segfault.sh $initdir/
setup_testsuite
) || return 1
)
setup_nspawn_root
ddebug "umount $TESTDIR/root"

View File

@ -60,7 +60,7 @@ ExecStart=/bin/systemctl reload /
EOF
setup_testsuite
) || return 1
)
ln -s /etc/systemd/system/-.mount $initdir/etc/systemd/system/root.mount
mkdir -p $initdir/etc/systemd/system/local-fs.target.wants

View File

@ -32,7 +32,7 @@ TimeoutStopSec=270s
EOF
setup_testsuite
) || return 1
)
# mask some services that we do not want to run in these tests
ln -s /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service

View File

@ -45,7 +45,7 @@ ExecStart=/bin/true
EOF
setup_testsuite
) || return 1
)
setup_nspawn_root
# mask some services that we do not want to run in these tests

View File

@ -64,7 +64,7 @@ EOF
chmod 0755 $initdir/test-fail-on-restart.sh
setup_testsuite
) || return 1
)
ddebug "umount $TESTDIR/root"
umount $TESTDIR/root

View File

@ -90,7 +90,7 @@ EOF
chmod 0755 $initdir/test-socket-group.sh
setup_testsuite
) || return 1
)
setup_nspawn_root

View File

@ -184,7 +184,7 @@ EOF
chmod 0755 $initdir/test-nspawn.sh
setup_testsuite
) || return 1
)
ddebug "umount $TESTDIR/root"
umount $TESTDIR/root

View File

@ -73,7 +73,7 @@ EOF
chmod +x $initdir/test-machine-id-setup.sh
setup_testsuite
) || return 1
)
# mask some services that we do not want to run in these tests
ln -s /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service

View File

@ -30,7 +30,7 @@ test_setup() {
cp $BUILD_DIR/src/shared/libsystemd-shared-*.so ${initdir}/usr/lib
setup_testsuite
) || return 1
)
# mask some services that we do not want to run in these tests
ln -s /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service
ln -s /dev/null $initdir/etc/systemd/system/systemd-journal-catalog-update.service

View File

@ -38,7 +38,7 @@ EOF
cp testsuite.sh $initdir/
setup_testsuite
) || return 1
)
ddebug "umount $TESTDIR/root"
umount $TESTDIR/root

View File

@ -30,7 +30,7 @@ EOF
cp testsuite.sh $initdir/
setup_testsuite
) || return 1
)
setup_nspawn_root
# mask some services that we do not want to run in these tests

View File

@ -40,7 +40,7 @@ EOF
cp testsuite.sh $initdir/
setup_testsuite
) || return 1
)
ddebug "umount $TESTDIR/root"
umount $TESTDIR/root

View File

@ -38,7 +38,7 @@ EOF
cp testsuite.sh $initdir/
setup_testsuite
) || return 1
)
setup_nspawn_root
ddebug "umount $TESTDIR/root"

View File

@ -38,7 +38,7 @@ EOF
cp testsuite.sh $initdir/
setup_testsuite
) || return 1
)
setup_nspawn_root
ddebug "umount $TESTDIR/root"

View File

@ -91,7 +91,7 @@ EOF
cp testsuite.sh $initdir/
setup_testsuite
) || return 1
)
setup_nspawn_root
# mask some services that we do not want to run in these tests

View File

@ -31,7 +31,7 @@ EOF
cp testsuite.sh $initdir/
setup_testsuite
) || return 1
)
setup_nspawn_root
ddebug "umount $TESTDIR/root"

View File

@ -30,7 +30,7 @@ EOF
cp testsuite.sh $initdir/
setup_testsuite
) || return 1
)
setup_nspawn_root
ddebug "umount $TESTDIR/root"

View File

@ -40,7 +40,7 @@ EOF
cp testsuite.sh $initdir/
setup_testsuite
) || return 1
)
setup_nspawn_root
ddebug "umount $TESTDIR/root"

View File

@ -49,7 +49,7 @@ ExecStart=/bin/true
EOF
setup_testsuite
) || return 1
)
setup_nspawn_root
# mask some services that we do not want to run in these tests

View File

@ -38,7 +38,7 @@ EOF
cp testsuite.sh $initdir/
setup_testsuite
) || return 1
)
ddebug "umount $TESTDIR/root"
umount $TESTDIR/root

View File

@ -49,7 +49,7 @@ EOF
cp testsuite.sh $initdir/
setup_testsuite
) || return 1
)
ddebug "umount $TESTDIR/root"
umount $TESTDIR/root

View File

@ -38,7 +38,7 @@ EOF
cp testsuite.sh $initdir/
setup_testsuite
) || return 1
)
ddebug "umount $TESTDIR/root"
umount $TESTDIR/root

View File

@ -41,7 +41,7 @@ EOF
cp testsuite.sh $initdir/
setup_testsuite
) || return 1
)
ddebug "umount $TESTDIR/root"
umount $TESTDIR/root

View File

@ -38,7 +38,7 @@ EOF
cp testsuite.sh $initdir/
setup_testsuite
) || return 1
)
setup_nspawn_root
ddebug "umount $TESTDIR/root"