diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-06-29 21:52:57 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-07-04 23:09:39 +0200 |
commit | 51235f2fe63fa5d45ac75b193b942cf3419ca6dd (patch) | |
tree | b2c9e910dd4f52d008b67e5de224d2b92bc486cb /test/units/testsuite-54.sh | |
parent | fstab-generator: add more parameter name comments (diff) | |
download | systemd-51235f2fe63fa5d45ac75b193b942cf3419ca6dd.tar.xz systemd-51235f2fe63fa5d45ac75b193b942cf3419ca6dd.zip |
test: add simple fstab credential test
Diffstat (limited to '')
-rwxr-xr-x | test/units/testsuite-54.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/units/testsuite-54.sh b/test/units/testsuite-54.sh index ca7e11fc46..bcc7313d6f 100755 --- a/test/units/testsuite-54.sh +++ b/test/units/testsuite-54.sh @@ -304,6 +304,10 @@ systemd-run -p DynamicUser=yes -p 'LoadCredential=os:/etc/os-release' \ if ! systemd-detect-virt -q -c ; then # Validate that the credential we inserted via the initrd logic arrived test "$(systemd-creds cat --system myinitrdcred)" = "guatemala" + + # Check that the fstab credential logic worked + test -d /injected + grep -q /injected /proc/self/mountinfo fi systemd-analyze log-level info |