summaryrefslogtreecommitdiffstats
path: root/nixos/tests/systemd-no-tainted.nix
blob: 8b305934518100cd62f514b84ec4efac614ef432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ 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
  '';
}