From 9138c3ccd245a582c29ea1bc14d53e89c4f567d0 Mon Sep 17 00:00:00 2001 From: David Murphy < dmurphy@saltstack.com> Date: Fri, 17 May 2024 15:55:19 -0600 Subject: [PATCH] Further debug --- tests/support/pkg.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/support/pkg.py b/tests/support/pkg.py index 400c6160e7a..fd02267b86d 100644 --- a/tests/support/pkg.py +++ b/tests/support/pkg.py @@ -483,9 +483,13 @@ class SaltPkgInstall: log.debug("Installing: %s", str(pkg)) ret = self.proc.run("installer", "-pkg", str(pkg), "-target", "/") self._check_retcode(ret) - ## DGM # Stop the service installed by the installer - ## DGM self.proc.run("launchctl", "disable", f"system/{service_name}") - ## DGM self.proc.run("launchctl", "bootout", "system", str(plist_file)) + + ## DGM TBD why stop service on upgrade ??? + if not upgrade: + # Stop the service installed by the installer + self.proc.run("launchctl", "disable", f"system/{service_name}") + self.proc.run("launchctl", "bootout", "system", str(plist_file)) + elif upgrade: env = os.environ.copy() extra_args = []