1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-30 10:50:15 +03:00

test: run test-shutdown.py in verbose mode

To make the debugging of spurious fails a bit easier.
This commit is contained in:
Frantisek Sumsal 2022-03-21 15:58:51 +01:00
parent c3d83ff940
commit 3fe2885cc5

View File

@ -13,11 +13,11 @@ _ORIG_NSPAWN="${SYSTEMD_NSPAWN:?}"
SYSTEMD_NSPAWN="${STATEDIR:?}/run-nspawn"
setup_nspawn_root_hook() {
cat > "${STATEDIR:?}"/run-nspawn <<-EOF
#!/bin/bash
exec "${TEST_BASE_DIR:?}"/test-shutdown.py -- "$_ORIG_NSPAWN" "\$@"
exit 1
EOF
cat >"${STATEDIR:?}/run-nspawn" <<EOF
#!/bin/bash
exec "${TEST_BASE_DIR:?}/test-shutdown.py" -v -- "$_ORIG_NSPAWN" "\$@"
exit 1
EOF
chmod 755 "${STATEDIR:?}"/run-nspawn
}