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:
parent
c3d83ff940
commit
3fe2885cc5
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user