From d26a6e377dbac403f02bdb43400615906049acb2 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 22 Jun 2022 16:23:26 +0200 Subject: [PATCH] nixos/tests/home-assistant: stop printing log With multiple specialization changes this isn't very helpful anymore, but no biggie since we check the log for errors anyway and the log is not too verbose anyway. --- nixos/tests/home-assistant.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nixos/tests/home-assistant.nix b/nixos/tests/home-assistant.nix index 341374e636ae..59b82593abcd 100644 --- a/nixos/tests/home-assistant.nix +++ b/nixos/tests/home-assistant.nix @@ -172,12 +172,8 @@ in { new_pid = hass.succeed("systemctl show --property=MainPID home-assistant.service") assert pid != new_pid, "The PID of the process shoudl change when the HA binary changes" - with subtest("Print log to ease debugging"): - output_log = hass.succeed("cat ${configDir}/home-assistant.log") - print("\n### home-assistant.log ###\n") - print(output_log + "\n") - with subtest("Check that no errors were logged"): + output_log = hass.succeed("cat ${configDir}/home-assistant.log") assert "ERROR" not in output_log with subtest("Check systemd unit hardening"):