From 76e962151ae9dc0660f343afae782a8b6df3b102 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 11 Dec 2022 01:23:48 +0100 Subject: [PATCH] nixos/tests/evcc: Fail when the unit produces fatal log messages --- nixos/tests/evcc.nix | 1 + 1 file changed, 1 insertion(+) 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"):