forked from mirrors/nixpkgs
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:
parent
cfbcf381c2
commit
d26a6e377d
|
@ -172,12 +172,8 @@ in {
|
||||||
new_pid = hass.succeed("systemctl show --property=MainPID home-assistant.service")
|
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"
|
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"):
|
with subtest("Check that no errors were logged"):
|
||||||
|
output_log = hass.succeed("cat ${configDir}/home-assistant.log")
|
||||||
assert "ERROR" not in output_log
|
assert "ERROR" not in output_log
|
||||||
|
|
||||||
with subtest("Check systemd unit hardening"):
|
with subtest("Check systemd unit hardening"):
|
||||||
|
|
Loading…
Reference in a new issue