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.
This commit is contained in:
Martin Weinelt 2022-06-22 16:23:26 +02:00
parent cfbcf381c2
commit d26a6e377d
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -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"):