From e31bb09912ed813c97dacd483f67b120dad2c35b Mon Sep 17 00:00:00 2001 From: nikstur Date: Tue, 10 Sep 2024 17:26:28 +0200 Subject: [PATCH] nixos/tests/userborn: add pwck and grpck --- nixos/tests/userborn.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/tests/userborn.nix b/nixos/tests/userborn.nix index c89880a14a5c..2c4f44b93ca5 100644 --- a/nixos/tests/userborn.nix +++ b/nixos/tests/userborn.nix @@ -99,6 +99,10 @@ in with subtest("sysusers group is created"): print(machine.succeed("getent group sysusers")) + with subtest("Check files"): + print(machine.succeed("grpck -r")) + print(machine.succeed("pwck -r")) + machine.succeed("/run/current-system/specialisation/new-generation/bin/switch-to-configuration switch") @@ -123,5 +127,9 @@ in with subtest("new-group group is created after switching to new generation"): print(machine.succeed("getent group new-group")) + + with subtest("Check files"): + print(machine.succeed("grpck -r")) + print(machine.succeed("pwck -r")) ''; }