]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Make extra_artifacts check optional
authorNicki Křížek <nicki@isc.org>
Tue, 24 Jun 2025 11:16:33 +0000 (13:16 +0200)
committerNicki Křížek <nicki@isc.org>
Tue, 24 Jun 2025 14:58:05 +0000 (14:58 +0000)
There is an ongoing debate about the usefulness of the extra artifacts
check. While it might be useful to detect unexpected behaviour in some
tests, it feels extraneous in many cases. This change provides a middle
ground by making the artifact checking optional. This might be
especially useful for writing new tests, since the author gets to decide
whether the check is useful -- and can utilize it, or can skip it for
sake of brevity.

(cherry picked from commit c06dc71cd5a307fcbbb20699f79ff753300e3c92)

bin/tests/system/conftest.py

index 06cae48cad956cdbc2bcf6a7ee0f7c143fda65ec..7a548ea202587837746ef5589b6e79c0318ad0b8 100644 (file)
@@ -381,7 +381,7 @@ def expected_artifacts(request):
     if test_specific_artifacts:
         return common_artifacts + test_specific_artifacts.args[0]
 
-    return common_artifacts
+    return None
 
 
 @pytest.fixture(scope="module")