summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-12-11 01:23:48 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-12-11 00:51:01 +0000
commitf3b538ef27635e8ddc786e3b8db8b62d459be971 (patch)
tree0ffdd52088e6dfed6c67ddf60c8f7b889e33846e
parentnixos/evcc: Fix unit environment (diff)
downloadnixpkgs-f3b538ef27635e8ddc786e3b8db8b62d459be971.tar.gz
nixos/tests/evcc: Fail when the unit produces fatal log messages
(cherry picked from commit 76e962151ae9dc0660f343afae782a8b6df3b102)
-rw-r--r--nixos/tests/evcc.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/tests/evcc.nix b/nixos/tests/evcc.nix
index 0fc261142f78..c223977a9d82 100644
--- a/nixos/tests/evcc.nix
+++ b/nixos/tests/evcc.nix
@@ -87,6 +87,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} :
with subtest("Check journal for errors"):
_, output = machine.execute("journalctl -o cat -u evcc.service")
+ assert "FATAL" not in output
assert "ERROR" not in output
with subtest("Check systemd hardening"):