MT#58458 don't touch systemd during tests

We don't want to mess with the host systemd during tests

Change-Id: I0102b35d86ecbe7d788379b6f04a486659c2042e
mr13.5
Richard Fuchs 10 months ago
parent eec0b4d3aa
commit daf2351aa7

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

Loading…
Cancel
Save