From 05d85bcc403bf898b2506e83fb3f4f8a2dd9004e Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 6 Aug 2026 19:46:42 +0200 Subject: [PATCH] test(sys-ctl-hlth-volumes): spell out that a non-zero exit is expected The script returns its anomaly count as the exit code and three of the five cases assert on it, so the run must not raise. check=False is the default, but stating it keeps someone from adding check=True and turning those three assertions into a CalledProcessError. Co-Authored-By: Claude Opus 5 (1M context) --- .../roles/sys-ctl-hlth-volumes/files/test_hlth_volumes_script.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/roles/sys-ctl-hlth-volumes/files/test_hlth_volumes_script.py b/tests/unit/roles/sys-ctl-hlth-volumes/files/test_hlth_volumes_script.py index 880261ee0d..fa0a569cc1 100644 --- a/tests/unit/roles/sys-ctl-hlth-volumes/files/test_hlth_volumes_script.py +++ b/tests/unit/roles/sys-ctl-hlth-volumes/files/test_hlth_volumes_script.py @@ -76,6 +76,7 @@ class TestHlthVolumesScript(unittest.TestCase): env=env, capture_output=True, text=True, + check=False, ) return done.returncode, done.stdout