diff options
author | oxalica <oxalicc@pm.me> | 2022-10-05 00:19:38 +0800 |
---|---|---|
committer | oxalica <oxalicc@pm.me> | 2022-10-05 01:03:24 +0800 |
commit | dad24c51c1f9b2252ad0af67c59d8763f479412e (patch) | |
tree | c0a84bdf6e54085029d8138177d4b37cf373e347 /nixos/tests/systemd-no-tainted.nix | |
parent | 5a8e48c968c8137bc12ef3c9f09f6285a2ea00c0 (diff) |
systemd-no-tainted: init as regression test
Diffstat (limited to 'nixos/tests/systemd-no-tainted.nix')
-rw-r--r-- | nixos/tests/systemd-no-tainted.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nixos/tests/systemd-no-tainted.nix b/nixos/tests/systemd-no-tainted.nix new file mode 100644 index 0000000000000..f0504065f2a48 --- /dev/null +++ b/nixos/tests/systemd-no-tainted.nix @@ -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 + ''; +}) |