From: Daan De Meyer Date: Mon, 1 Dec 2025 18:35:51 +0000 (+0100) Subject: TEST-50-DISSECT: Make sure RootDirectoryFileDescriptor= can be reused X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cee5c22b63505715aa22353ca0b3f5658f429ee;p=thirdparty%2Fsystemd.git TEST-50-DISSECT: Make sure RootDirectoryFileDescriptor= can be reused --- diff --git a/test/units/TEST-50-DISSECT.dissect.sh b/test/units/TEST-50-DISSECT.dissect.sh index 47d6defafd9..5dd26281abf 100755 --- a/test/units/TEST-50-DISSECT.dissect.sh +++ b/test/units/TEST-50-DISSECT.dissect.sh @@ -923,6 +923,8 @@ test ! -f /tmp/img/abc # Test RootDirectoryFileDescriptor= systemd-run --wait --pipe --root-directory=/tmp/img -- grep -q 'MARKER=1' /usr/lib/os-release +# Make sure the same root file descriptor can be reused multiple times. +systemd-run --wait --pipe --same-root-dir -p ExecStartPre=true true systemd-dissect --mtree /tmp/img >/dev/null systemd-dissect --list /tmp/img >/dev/null