Stupid tmp fix to try to track why the tests are failing

This commit is contained in:
Alexandre Aubin 2021-04-17 00:49:17 +02:00
parent 0616d63222
commit 6e4f1fa42e

View file

@ -3457,6 +3457,11 @@ def _assert_system_is_sane_for_app(manifest, when):
# List services currently down and raise an exception if any are found # List services currently down and raise an exception if any are found
services_status = {s:service_status(s) for s in services} services_status = {s:service_status(s) for s in services}
faulty_services = [f"{s} ({status['status']})" for s, status in services_status.items() if status['status'] != "running"] faulty_services = [f"{s} ({status['status']})" for s, status in services_status.items() if status['status'] != "running"]
# Stupid tmp fix to try to track why the tests are failing
if "php7.3-fpm" in [s for s, status in services_status.items() if status['status'] != "running"]:
os.system("journalctl -u php7.3-fpm -n 300 --no-hostname --no-pager")
if faulty_services: if faulty_services:
if when == "pre": if when == "pre":
raise YunohostValidationError( raise YunohostValidationError(