From 3e74e6a15b1b31538222d16136d9743cff26f62e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 31 Jan 2023 16:41:16 +0100 Subject: [PATCH] test-sysusers: check that sysusers creates /etc when missing --- test/test-sysusers.sh.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test-sysusers.sh.in b/test/test-sysusers.sh.in index 950dc297d8..fab37960bc 100755 --- a/test/test-sysusers.sh.in +++ b/test/test-sysusers.sh.in @@ -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 <