]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Log the Python interpreter used to run the system tests during setup
authorŠtěpán Balážik <stepan@isc.org>
Wed, 15 Apr 2026 13:12:38 +0000 (15:12 +0200)
committerŠtěpán Balážik <stepan@isc.org>
Wed, 15 Apr 2026 13:12:38 +0000 (15:12 +0200)
This is useful when running in an virtual environment or on a machine
where multiple Python versions are installed.

bin/tests/system/conftest.py

index 74af6c1b5ea32487cfb7f8e48808d41015c2f80c..60784849340b48fb6fd542f8d27a4396d957332d 100644 (file)
@@ -402,6 +402,11 @@ def system_test_dir(request, system_test_name, expected_artifacts):
     # Log which binaries are used for the test(s)
     isctest.log.info("testing binaries from: %s", os.environ.get("TOP_BUILDDIR"))
 
+    # Log what Python interpreter is used to run the test(s)
+    isctest.log.info(
+        "using Python interpreter at: %s to run the test(s)", os.environ.get("PYTHON")
+    )
+
     # System tests are meant to be executed from their directory - switch to it.
     old_cwd = os.getcwd()
     os.chdir(testdir)