mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-11 07:15:54 +03:00
systemd-no-tainted: init as regression test
This commit is contained in:
parent
5a8e48c968
commit
dad24c51c1
@ -607,6 +607,7 @@ in {
|
||||
systemd-networkd-dhcpserver-static-leases = handleTest ./systemd-networkd-dhcpserver-static-leases.nix {};
|
||||
systemd-networkd-ipv6-prefix-delegation = handleTest ./systemd-networkd-ipv6-prefix-delegation.nix {};
|
||||
systemd-networkd-vrf = handleTest ./systemd-networkd-vrf.nix {};
|
||||
systemd-no-tainted = handleTest ./systemd-no-tainted.nix {};
|
||||
systemd-nspawn = handleTest ./systemd-nspawn.nix {};
|
||||
systemd-oomd = handleTest ./systemd-oomd.nix {};
|
||||
systemd-shutdown = handleTest ./systemd-shutdown.nix {};
|
||||
|
14
nixos/tests/systemd-no-tainted.nix
Normal file
14
nixos/tests/systemd-no-tainted.nix
Normal file
@ -0,0 +1,14 @@
|
||||
import ./make-test-python.nix ({ pkgs, ... }: {
|
||||
name = "systemd-no-tainted";
|
||||
|
||||
nodes.machine = { };
|
||||
|
||||
testScript = ''
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
with subtest("systemctl should not report tainted with unmerged-usr"):
|
||||
output = machine.succeed("systemctl status")
|
||||
print(output)
|
||||
assert "Tainted" not in output
|
||||
assert "unmerged-usr" not in output
|
||||
'';
|
||||
})
|
Loading…
Reference in New Issue
Block a user