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 = []