test: use 'exit 0' instead of 'return' in test scripts

14385s [   66.896852] TEST-87-AUX-UTILS-VM.sh[3744]: + test -x /usr/lib/systemd/systemd-validatefs
14385s [   66.898544] TEST-87-AUX-UTILS-VM.sh[3744]: + echo 'no systemd-validatefs'
14385s [   66.899115] TEST-87-AUX-UTILS-VM.sh[3744]: no systemd-validatefs
14385s [   66.899699] TEST-87-AUX-UTILS-VM.sh[3744]: + return
14385s [   66.900189] TEST-87-AUX-UTILS-VM.sh[3744]: .//usr/lib/systemd/tests/testdata/units/TEST-87-AUX-UTILS-VM.validatefs.sh: line 13: return: can only `return' from a function or sourced script

Follow-up for 6e003d18bb
This commit is contained in:
Luca Boccassi
2025-04-01 10:59:27 +01:00
parent 1e79a29233
commit 4b85218629
@@ -5,12 +5,12 @@ set -o pipefail
if ! command -v systemd-repart >/dev/null; then
echo "no systemd-repart"
return
exit 0
fi
if ! test -x /usr/lib/systemd/systemd-validatefs ; then
echo "no systemd-validatefs"
return
exit 0
fi
export SYSTEMD_LOG_LEVEL=debug