]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: run test-shutdown.py in verbose mode
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 21 Mar 2022 14:58:51 +0000 (15:58 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 21 Mar 2022 15:13:09 +0000 (16:13 +0100)
To make the debugging of spurious fails a bit easier.

test/TEST-69-SHUTDOWN/test.sh

index dd7b8998b5b65d05bca97802111f4ae2188bc61e..39adedaea1105e3cc0cf07ec61f9d17150aaf131 100755 (executable)
@@ -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
 }