From daf2351aa74789165ef40358168b762c55bcaeef Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 7 Aug 2025 12:28:30 -0400 Subject: [PATCH] MT#58458 don't touch systemd during tests We don't want to mess with the host systemd during tests Change-Id: I0102b35d86ecbe7d788379b6f04a486659c2042e --- scripts/services | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/services b/scripts/services index fe7f6922..9e34c17c 100755 --- a/scripts/services +++ b/scripts/services @@ -138,6 +138,11 @@ services_sync_state() { } systemd_daemon_reload_preset() { + if [ "${NGCP_TESTSUITE:-false}" = "true" ]; then + log_debug "NGCP_TESTSUITE is set, not touching systemd" + return + fi + if [[ -d "/run/systemd/system" ]]; then log_info "Reloading systemd daemon and preset all services"