Skip to content

Commit 1194776

Browse files
committed
Don't clobber fixes to the pipeline
1 parent 1f24b83 commit 1194776

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

noxfile.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1911,7 +1911,7 @@ def ci_test_onedir_pkgs(session):
19111911
except CommandFailed:
19121912
if os.environ.get("RERUN_FAILURES", "0") == "0":
19131913
# Don't rerun on failures
1914-
return
1914+
sys.exit(1)
19151915

19161916
# Don't print the system information, not the test selection on reruns
19171917
global PRINT_TEST_SELECTION
@@ -1962,7 +1962,7 @@ def ci_test_onedir_pkgs(session):
19621962
except CommandFailed:
19631963
if os.environ.get("RERUN_FAILURES", "0") == "0":
19641964
# Don't rerun on failures
1965-
return
1965+
sys.exit(1)
19661966
cmd_args = chunks["install"]
19671967
pytest_args = (
19681968
common_pytest_args[:]

salt/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def string(self):
456456
version_string += f".{self.mbugfix}"
457457
if self.pre_type:
458458
version_string += f"{self.pre_type}{self.pre_num}"
459-
if self.noc and self.sha:
459+
if self.noc is not None and self.sha:
460460
noc = self.noc
461461
if noc < 0:
462462
noc = "0na"

tests/pytests/pkg/integration/test_version.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ def test_compare_versions(binary, install_salt):
104104
"""
105105
Test compare versions
106106
"""
107-
version = install_salt.artifact_version
107+
if install_salt.use_prev_version:
108+
version = install_salt.prev_version
109+
else:
110+
version = install_salt.artifact_version
108111
if binary in install_salt.binary_paths:
109112
if install_salt.upgrade:
110113
install_salt.install()

0 commit comments

Comments
 (0)