From 16e925c6bb529dd862110dd5b4d57104ad98400c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 21 Oct 2020 10:07:23 +0200 Subject: [PATCH] test-path: relax test in "ci" and "release" modes --- src/test/test-path.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/test-path.c b/src/test/test-path.c index 60f7672a39b..2e20674c2f3 100644 --- a/src/test/test-path.c +++ b/src/test/test-path.c @@ -103,10 +103,11 @@ static int _check_states(unsigned line, service_result_to_string(service->result)); if (service->state == SERVICE_FAILED && - service->main_exec_status.status == EXIT_CGROUP) + service->main_exec_status.status == EXIT_CGROUP && + !ci_environment()) /* On a general purpose system we may fail to start the service for reasons which are * not under our control: permission limits, resource exhaustion, etc. Let's skip the - * test in those cases. */ + * test in those cases. On developer machines we require proper setup. */ return log_notice_errno(SYNTHETIC_ERRNO(ECANCELED), "Failed to start service %s, aborting test: %s/%s", UNIT(service)->id, -- 2.47.3