From: Daan De Meyer Date: Mon, 11 Dec 2023 17:51:28 +0000 (+0100) Subject: tests: Test "none" output format as well X-Git-Tag: v20~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdf0342277898bf07f973e51df6e9b4a315f1304;p=thirdparty%2Fmkosi.git tests: Test "none" output format as well Let's build an image with "none" as well. There won't be any output, but we can at least test that nothing breaks when specifying "none" as the output format. Also apply the "integration" marker to the entire file while we're at it. --- diff --git a/tests/test_boot.py b/tests/test_boot.py index 378a8fa0e..61f481af4 100644 --- a/tests/test_boot.py +++ b/tests/test_boot.py @@ -10,9 +10,10 @@ from mkosi.qemu import find_virtiofsd from . import Image +pytestmark = pytest.mark.integration -@pytest.mark.integration -@pytest.mark.parametrize("format", [f for f in OutputFormat if f != OutputFormat.none]) + +@pytest.mark.parametrize("format", OutputFormat) def test_boot(format: OutputFormat) -> None: with Image( options=[ @@ -48,7 +49,7 @@ def test_boot(format: OutputFormat) -> None: if image.distribution == Distribution.rhel_ubi: return - if format == OutputFormat.tar or format.is_extension_image(): + if format in (OutputFormat.tar, OutputFormat.none) or format.is_extension_image(): return if format == OutputFormat.directory and not find_virtiofsd():