mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Accept 2 as a valid exitcode for the nsis installer
This commit is contained in:
parent
22f3d26708
commit
962f7529fb
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue