mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-27 03:21:32 +03:00
test: echo a message when the tests fails
Sometimes it is not clear from the preceding output that there was a failure.
This commit is contained in:
parent
9d84eb2053
commit
b74a306197
@ -1963,21 +1963,21 @@ test_run() {
|
||||
|
||||
if [ -z "$TEST_NO_QEMU" ]; then
|
||||
if run_qemu "$1"; then
|
||||
check_result_qemu || return 1
|
||||
check_result_qemu || { echo "QEMU test failed"; return 1; }
|
||||
else
|
||||
dwarn "can't run QEMU, skipping"
|
||||
fi
|
||||
fi
|
||||
if [ -z "$TEST_NO_NSPAWN" ]; then
|
||||
if run_nspawn "nspawn-root" "$1"; then
|
||||
check_result_nspawn "nspawn-root" || return 1
|
||||
check_result_nspawn "nspawn-root" || { echo "nspawn-root test failed"; return 1; }
|
||||
else
|
||||
dwarn "can't run systemd-nspawn, skipping"
|
||||
fi
|
||||
|
||||
if [[ "$RUN_IN_UNPRIVILEGED_CONTAINER" = "yes" ]]; then
|
||||
if NSPAWN_ARGUMENTS="-U --private-network $NSPAWN_ARGUMENTS" run_nspawn "unprivileged-nspawn-root" "$1"; then
|
||||
check_result_nspawn "unprivileged-nspawn-root" || return 1
|
||||
check_result_nspawn "unprivileged-nspawn-root" || { echo "unprivileged-nspawn-root test failed"; return 1; }
|
||||
else
|
||||
dwarn "can't run systemd-nspawn, skipping"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user