mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 01:30:20 +00:00
Only test up to the version number in the pkg test test_salt_version
This commit is contained in:
parent
ba477eff6a
commit
c2f997ad8a
1 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,9 @@ def test_salt_version(version, install_salt):
|
|||
"""
|
||||
test_bin = os.path.join(*install_salt.binary_paths["salt"])
|
||||
ret = install_salt.proc.run(test_bin, "--version")
|
||||
assert ret.stdout.strip() == f"salt {version}"
|
||||
actual = ret.stdout.strip().split(" ")[:2]
|
||||
expected = ["salt", version]
|
||||
assert actual == expected
|
||||
|
||||
|
||||
@pytest.mark.skip_on_windows
|
||||
|
|
Loading…
Add table
Reference in a new issue