Check return code instead of stdout

This commit is contained in:
Daniel A. Wozniak 2023-05-22 03:15:56 -07:00 committed by Megan Wilhite
parent cb396fe805
commit 9dffea3178

View file

@ -621,7 +621,7 @@ class SaltPkgInstall:
ret = self.proc.run(self.pkg_mngr, "install", "-y", *self.pkgs)
if not platform.is_darwin() and not platform.is_windows():
# Make sure we don't have any trailing references to old package file locations
assert "No such file or directory" not in ret.stdout
ret.returncode == 0
assert "/saltstack/salt/run" not in ret.stdout
log.info(ret)
self._check_retcode(ret)