From e1d34cfc7a8236e32edc479c22976eb8d1832191 Mon Sep 17 00:00:00 2001 From: David Murphy < dmurphy@saltstack.com> Date: Tue, 28 May 2024 12:02:43 -0600 Subject: [PATCH] fix return code test for inactive --- tests/pytests/pkg/upgrade/test_salt_upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pytests/pkg/upgrade/test_salt_upgrade.py b/tests/pytests/pkg/upgrade/test_salt_upgrade.py index a3c86086f57..3c192df9680 100644 --- a/tests/pytests/pkg/upgrade/test_salt_upgrade.py +++ b/tests/pytests/pkg/upgrade/test_salt_upgrade.py @@ -389,7 +389,7 @@ def test_salt_systemd_inactive_preservation( f"DGM salt_systemd_setup, '{test_item}' systemctl inactive test produced, line '{ret.stdout.strip().split()}', result '{test_active}'", flush=True, ) - assert ret.returncode == 0 + assert ret.returncode == 1 assert test_active == "inactive"