about summary refs log tree commit diff
path: root/nixos/tests/systemd-no-tainted.nix
blob: f0504065f2a482438c88af314c8ffb1bf9937638 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
  '';
})