From 052241689a0c419d13e15e83e7ad65dd16fc8ffd Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Mon, 27 Apr 2026 17:33:41 -0700 Subject: test_vdkr_registry: fix test_image_requires_subcommand vdkr.run() merges stderr into stdout (see conftest.py), so the error message ends up in result.stdout even though the script writes it to stderr (>&2). Signed-off-by: Tim Orling Signed-off-by: Bruce Ashfield --- tests/test_vdkr_registry.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/test_vdkr_registry.py') diff --git a/tests/test_vdkr_registry.py b/tests/test_vdkr_registry.py index 9073444d..72a27169 100644 --- a/tests/test_vdkr_registry.py +++ b/tests/test_vdkr_registry.py @@ -259,7 +259,11 @@ class TestImageCompoundCommands: """Test that 'image' without subcommand shows error.""" result = self.vdkr.run("image", check=False) assert result.returncode != 0 - assert "subcommand" in result.stderr.lower() or "requires" in result.stderr.lower() + # vdkr.run() merges stderr into stdout (see conftest.py), so the + # error message ends up in result.stdout even though the script + # writes it to stderr (>&2). + combined = (result.stdout + result.stderr).lower() + assert "subcommand" in combined or "requires" in combined class TestRegistryCLIOverride: -- cgit v1.2.3-54-g00ecf