1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

test-sysusers: check that sysusers creates /etc when missing

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2023-01-31 16:41:16 +01:00
parent d173d5564f
commit 3e74e6a15b

View File

@ -99,6 +99,14 @@ $SYSUSERS --root=$TESTDIR \
compare $SOURCE/inline "(--inline --replace=…)"
echo "*** Testing --inline with no /etc"
rm -rf $TESTDIR/etc
$SYSUSERS --root=$TESTDIR --inline \
"u u1 222 - - /bin/zsh" \
"g g1 111"
compare $SOURCE/inline "(--inline)"
rm -f $TESTDIR/etc/sysusers.d/* $TESTDIR/usr/lib/sysusers.d/*
cat >$TESTDIR/etc/login.defs <<EOF