Accept 2 as a valid exitcode for the nsis installer

This commit is contained in:
Shane Lee 2024-07-23 10:23:09 -06:00 committed by Daniel Wozniak
parent 22f3d26708
commit 962f7529fb

View file

@ -496,7 +496,7 @@ def setup_windows(
ret = shell.run(
"msiexec", "/qn", "/i", str(pkg_path), 'START_MINION=""'
)
assert ret.returncode == 0, ret
assert ret.returncode in (0, 2), ret
log.debug("Removing installed salt-minion service")
ret = shell.run(
@ -508,7 +508,7 @@ def setup_windows(
"confirm",
check=False,
)
assert ret.returncode == 0, ret
assert ret.returncode in (0, 2), ret
else:
# We are testing the onedir download
onedir_name = f"salt-{salt_release}-onedir-windows-{arch}.zip"