mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Use unzip for the windows onedir archives after download
This commit is contained in:
parent
1f5191ec65
commit
e68ee534da
1 changed files with 2 additions and 2 deletions
|
@ -507,7 +507,7 @@ def setup_windows(
|
|||
assert ret.returncode == 0, ret
|
||||
else:
|
||||
# We are testing the onedir download
|
||||
onedir_name = f"salt-{salt_release}-onedir-windows-{arch}.tar.xz"
|
||||
onedir_name = f"salt-{salt_release}-onedir-windows-{arch}.zip"
|
||||
if repo_subpath == "minor":
|
||||
repo_url_base = f"{root_url}/onedir/{repo_subpath}/{salt_release}"
|
||||
else:
|
||||
|
@ -521,7 +521,7 @@ def setup_windows(
|
|||
except Exception as exc:
|
||||
pytest.fail(f"Failed to download {onedir_url}: {exc}")
|
||||
|
||||
shell.run("tar", "xvf", str(onedir_location), "-C", str(onedir_extracted))
|
||||
shell.run("unzip", str(onedir_location), "-d", str(onedir_extracted))
|
||||
yield
|
||||
finally:
|
||||
# We need to uninstall the MSI packages, otherwise they will not install correctly
|
||||
|
|
Loading…
Add table
Reference in a new issue