systemd-no-tainted: init as regression test

oxalica dad24c51 5a8e48c9

Changed files
+15
nixos
+1
nixos/tests/all-tests.nix
···
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
···
+
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
+
'';
+
})