From dad96a52b4c5d5bcd624b0da62cd04493360c091 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Tue, 10 Feb 2026 12:27:36 -0500 Subject: [PATCH 1/7] refactor(pathfinder): replace info_summary_append fixture with Python logging Replace the custom `info_summary_append` pytest fixture and terminal summary with standard Python `logging`. Test diagnostic info now writes to a per- strictness log file (`test-info-summary-{strictness}.log`) via a `logging.FileHandler`, uploaded as a GHA run artifact. - Drop `custom_info` list, `pytest_terminal_summary`, and the `info_summary_append` fixture from conftest - Add session-scoped `_info_summary_handler` yield fixture (FileHandler lifecycle) and function-scoped `info_log` fixture (LoggerAdapter with test node name) - Update test call sites to use `info_log.info(...)` instead of `info_summary_append(...)` - Remove `tee` + `grep` verification from `ci/tools/run-tests` - Add `upload-artifact` step to both test-wheel workflows with `if-no-files-found: error` Co-authored-by: Cursor --- .github/workflows/test-wheel-linux.yml | 8 ++++ .github/workflows/test-wheel-windows.yml | 8 ++++ ci/tools/run-tests | 6 +-- cuda_pathfinder/tests/conftest.py | 45 +++++++++++-------- .../tests/test_find_nvidia_binaries.py | 4 +- .../tests/test_find_nvidia_headers.py | 8 ++-- .../tests/test_load_nvidia_dynamic_lib.py | 6 +-- 7 files changed, 53 insertions(+), 32 deletions(-) diff --git a/.github/workflows/test-wheel-linux.yml b/.github/workflows/test-wheel-linux.yml index 270ed445a98..25a5f9a80c6 100644 --- a/.github/workflows/test-wheel-linux.yml +++ b/.github/workflows/test-wheel-linux.yml @@ -298,3 +298,11 @@ jobs: CUDA_PATHFINDER_TEST_FIND_NVIDIA_HEADERS_STRICTNESS: all_must_work CUDA_PATHFINDER_TEST_FIND_NVIDIA_BITCODE_LIB_STRICTNESS: all_must_work run: run-tests pathfinder + + - name: Upload cuda.pathfinder test info summary + if: ${{ !cancelled() }} + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + with: + name: cuda-pathfinder-test-info-${{ inputs.host-platform }}-py${{ matrix.PY_VER }}-cuda${{ matrix.CUDA_VER }}-${{ matrix.LOCAL_CTK == '1' && 'local' || 'wheels' }}-${{ matrix.GPU }} + path: cuda_pathfinder/test-info-summary-*.log + if-no-files-found: error diff --git a/.github/workflows/test-wheel-windows.yml b/.github/workflows/test-wheel-windows.yml index 91f098b0e90..4e6dc532d9c 100644 --- a/.github/workflows/test-wheel-windows.yml +++ b/.github/workflows/test-wheel-windows.yml @@ -275,3 +275,11 @@ jobs: CUDA_PATHFINDER_TEST_FIND_NVIDIA_BITCODE_LIB_STRICTNESS: all_must_work shell: bash --noprofile --norc -xeuo pipefail {0} run: run-tests pathfinder + + - name: Upload cuda.pathfinder test info summary + if: ${{ !cancelled() }} + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + with: + name: cuda-pathfinder-test-info-${{ inputs.host-platform }}-py${{ matrix.PY_VER }}-cuda${{ matrix.CUDA_VER }}-${{ matrix.LOCAL_CTK == '1' && 'local' || 'wheels' }}-${{ matrix.GPU }} + path: cuda_pathfinder/test-info-summary-*.log + if-no-files-found: error diff --git a/ci/tools/run-tests b/ci/tools/run-tests index d42634a7073..75b279160ce 100755 --- a/ci/tools/run-tests +++ b/ci/tools/run-tests @@ -33,11 +33,7 @@ if [[ "${test_module}" == "pathfinder" ]]; then "LD:${CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS} " \ "FH:${CUDA_PATHFINDER_TEST_FIND_NVIDIA_HEADERS_STRICTNESS} " \ "BC:${CUDA_PATHFINDER_TEST_FIND_NVIDIA_BITCODE_LIB_STRICTNESS}" - pytest -ra -s -v --durations=0 tests/ |& tee /tmp/pathfinder_test_log.txt - # Report the number of "INFO test_" lines (including zero) - # to support quick validations based on GHA log archives. - line_count=$(awk '/^INFO test_/ {count++} END {print count+0}' /tmp/pathfinder_test_log.txt) - echo "Number of \"INFO test_\" lines: $line_count" + pytest -ra -s -v --durations=0 tests/ popd elif [[ "${test_module}" == "bindings" ]]; then echo "Installing bindings wheel" diff --git a/cuda_pathfinder/tests/conftest.py b/cuda_pathfinder/tests/conftest.py index e8a5e11b391..3df3c5fe555 100644 --- a/cuda_pathfinder/tests/conftest.py +++ b/cuda_pathfinder/tests/conftest.py @@ -2,33 +2,42 @@ # SPDX-License-Identifier: Apache-2.0 +import logging +import os + import pytest +_LOGGER_NAME = "cuda_pathfinder.test_info" -def pytest_configure(config): - config.custom_info = [] +def _info_summary_log_filename(): + strictness = os.environ.get("CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS", "default") + return f"test-info-summary-{strictness}.log" -def pytest_terminal_summary(terminalreporter, exitstatus, config): - if not config.getoption("verbose"): - return - if hasattr(config.option, "iterations"): # pytest-freethreaded runs all tests at least twice - return - if getattr(config.option, "count", 1) > 1: # pytest-repeat - return - if config.custom_info: - terminalreporter.write_sep("=", "INFO summary") - for msg in config.custom_info: - terminalreporter.line(f"INFO {msg}") +@pytest.fixture(scope="session") +def _info_summary_handler(request): + log_path = request.config.rootpath / _info_summary_log_filename() + handler = logging.FileHandler(log_path, mode="w") + handler.setFormatter(logging.Formatter("%(test_node)s: %(message)s")) + logger = logging.getLogger(_LOGGER_NAME) + logger.addHandler(handler) + logger.setLevel(logging.DEBUG) + logger.propagate = False -@pytest.fixture -def info_summary_append(request): - def _append(message): - request.config.custom_info.append(f"{request.node.name}: {message}") + yield handler + + logger.removeHandler(handler) + handler.close() - return _append + +@pytest.fixture +def info_log(request, _info_summary_handler): # noqa: ARG001 + return logging.LoggerAdapter( + logging.getLogger(_LOGGER_NAME), + extra={"test_node": request.node.name}, + ) def skip_if_missing_libnvcudla_so(libname: str, *, timeout: float) -> None: diff --git a/cuda_pathfinder/tests/test_find_nvidia_binaries.py b/cuda_pathfinder/tests/test_find_nvidia_binaries.py index ec9740cd853..a13b4316413 100644 --- a/cuda_pathfinder/tests/test_find_nvidia_binaries.py +++ b/cuda_pathfinder/tests/test_find_nvidia_binaries.py @@ -21,9 +21,9 @@ def test_unknown_utility_name(): @pytest.mark.parametrize("utility_name", SUPPORTED_BINARIES) -def test_find_binary_utilities(info_summary_append, utility_name): +def test_find_binary_utilities(info_log, utility_name): bin_path = find_nvidia_binary_utility(utility_name) - info_summary_append(f"{bin_path=!r}") + info_log.info(f"{bin_path=!r}") assert bin_path is None or os.path.isfile(bin_path) diff --git a/cuda_pathfinder/tests/test_find_nvidia_headers.py b/cuda_pathfinder/tests/test_find_nvidia_headers.py index e28f64d3520..e31c6d0ea5f 100644 --- a/cuda_pathfinder/tests/test_find_nvidia_headers.py +++ b/cuda_pathfinder/tests/test_find_nvidia_headers.py @@ -113,12 +113,12 @@ def _fake_cudart_canary_abs_path(ctk_root: Path) -> str: @pytest.mark.parametrize("libname", SUPPORTED_HEADERS_NON_CTK.keys()) -def test_locate_non_ctk_headers(info_summary_append, libname): +def test_locate_non_ctk_headers(info_log, libname): hdr_dir = find_nvidia_header_directory(libname) located_hdr_dir = locate_nvidia_header_directory(libname) assert hdr_dir is None if not located_hdr_dir else hdr_dir == located_hdr_dir.abs_path - info_summary_append(f"{hdr_dir=!r}") + info_log.info(f"{hdr_dir=!r}") if hdr_dir: _located_hdr_dir_asserts(located_hdr_dir) assert os.path.isdir(hdr_dir) @@ -147,12 +147,12 @@ def test_supported_headers_site_packages_ctk_consistency(): @pytest.mark.parametrize("libname", SUPPORTED_HEADERS_CTK.keys()) -def test_locate_ctk_headers(info_summary_append, libname): +def test_locate_ctk_headers(info_log, libname): hdr_dir = find_nvidia_header_directory(libname) located_hdr_dir = locate_nvidia_header_directory(libname) assert hdr_dir is None if not located_hdr_dir else hdr_dir == located_hdr_dir.abs_path - info_summary_append(f"{hdr_dir=!r}") + info_log.info(f"{hdr_dir=!r}") if hdr_dir: _located_hdr_dir_asserts(located_hdr_dir) assert os.path.isdir(hdr_dir) diff --git a/cuda_pathfinder/tests/test_load_nvidia_dynamic_lib.py b/cuda_pathfinder/tests/test_load_nvidia_dynamic_lib.py index 401e7dc13f8..f94cbbbd6ed 100644 --- a/cuda_pathfinder/tests/test_load_nvidia_dynamic_lib.py +++ b/cuda_pathfinder/tests/test_load_nvidia_dynamic_lib.py @@ -111,7 +111,7 @@ def _is_expected_load_nvidia_dynamic_lib_failure(libname): "libname", supported_nvidia_libs.SUPPORTED_WINDOWS_DLLS if IS_WINDOWS else supported_nvidia_libs.SUPPORTED_LINUX_SONAMES, ) -def test_load_nvidia_dynamic_lib(info_summary_append, libname): +def test_load_nvidia_dynamic_lib(info_log, libname): # Use a fresh Python subprocess for each load to isolate global dynamic # loader state and keep the tests aligned with the canary probe model. timeout = 120 if IS_WINDOWS else 30 @@ -133,9 +133,9 @@ def raise_child_process_failed(): skip_if_missing_libnvcudla_so(libname, timeout=timeout) if STRICTNESS == "all_must_work" and not _is_expected_load_nvidia_dynamic_lib_failure(libname): raise_child_process_failed() - info_summary_append(f"Not found: {libname=!r}") + info_log.info(f"Not found: {libname=!r}") else: abs_path = payload.abs_path assert abs_path is not None - info_summary_append(f"abs_path={quote_for_shell(abs_path)}") + info_log.info(f"abs_path={quote_for_shell(abs_path)}") assert os.path.isfile(abs_path) # double-check the abs_path From e83b6f5e9507d7fe7d7ffcc7c8e28e34f8c4ca84 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Tue, 10 Feb 2026 12:32:26 -0500 Subject: [PATCH 2/7] chore: lints --- cuda_pathfinder/tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuda_pathfinder/tests/conftest.py b/cuda_pathfinder/tests/conftest.py index 3df3c5fe555..0cd996da940 100644 --- a/cuda_pathfinder/tests/conftest.py +++ b/cuda_pathfinder/tests/conftest.py @@ -33,7 +33,7 @@ def _info_summary_handler(request): @pytest.fixture -def info_log(request, _info_summary_handler): # noqa: ARG001 +def info_log(request, _info_summary_handler): return logging.LoggerAdapter( logging.getLogger(_LOGGER_NAME), extra={"test_node": request.node.name}, From ee20cd6d04401f49c5fe2f48fc517855e8d64b80 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Tue, 10 Feb 2026 12:33:18 -0500 Subject: [PATCH 3/7] refactor(pathfinder): inline log filename into fixture Co-authored-by: Cursor --- cuda_pathfinder/tests/conftest.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cuda_pathfinder/tests/conftest.py b/cuda_pathfinder/tests/conftest.py index 0cd996da940..908651a9c61 100644 --- a/cuda_pathfinder/tests/conftest.py +++ b/cuda_pathfinder/tests/conftest.py @@ -10,14 +10,10 @@ _LOGGER_NAME = "cuda_pathfinder.test_info" -def _info_summary_log_filename(): - strictness = os.environ.get("CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS", "default") - return f"test-info-summary-{strictness}.log" - - @pytest.fixture(scope="session") def _info_summary_handler(request): - log_path = request.config.rootpath / _info_summary_log_filename() + strictness = os.environ.get("CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS", "default") + log_path = request.config.rootpath / f"test-info-summary-{strictness}.log" handler = logging.FileHandler(log_path, mode="w") handler.setFormatter(logging.Formatter("%(test_node)s: %(message)s")) From 37044ad32914240be824a5404e0dcc25e39ef867 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Tue, 10 Feb 2026 12:34:23 -0500 Subject: [PATCH 4/7] fix(pathfinder): set test info logger level to INFO, not DEBUG Co-authored-by: Cursor --- cuda_pathfinder/tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuda_pathfinder/tests/conftest.py b/cuda_pathfinder/tests/conftest.py index 908651a9c61..c868e45af4b 100644 --- a/cuda_pathfinder/tests/conftest.py +++ b/cuda_pathfinder/tests/conftest.py @@ -19,7 +19,7 @@ def _info_summary_handler(request): logger = logging.getLogger(_LOGGER_NAME) logger.addHandler(handler) - logger.setLevel(logging.DEBUG) + logger.setLevel(logging.INFO) logger.propagate = False yield handler From 80b7c484bd9c29139e6a03addbe25714b71a418a Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Thu, 12 Feb 2026 07:13:47 -0500 Subject: [PATCH 5/7] refactor(pathfinder): address review feedback on test info logging - Hardwire log filename with `pathfinder` prefix and `.txt` extension - Retain strictness suffix so both CI runs produce separate logs - Add `pytest_configure` to clean up stale log for the current strictness level (not all levels, preserving the other run's log) - Add line count echo to `run-tests` for quick CI log grep - Add `.gitignore` entry for the new `.txt` log files - Update artifact upload paths in both workflow files - Align default strictness fallback with `test_load_nvidia_dynamic_lib` Co-authored-by: Cursor --- .github/workflows/test-wheel-linux.yml | 2 +- .github/workflows/test-wheel-windows.yml | 2 +- .gitignore | 3 +++ ci/tools/run-tests | 1 + cuda_pathfinder/tests/conftest.py | 15 +++++++++++++-- 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-wheel-linux.yml b/.github/workflows/test-wheel-linux.yml index 25a5f9a80c6..6f0cb1148e8 100644 --- a/.github/workflows/test-wheel-linux.yml +++ b/.github/workflows/test-wheel-linux.yml @@ -304,5 +304,5 @@ jobs: uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: name: cuda-pathfinder-test-info-${{ inputs.host-platform }}-py${{ matrix.PY_VER }}-cuda${{ matrix.CUDA_VER }}-${{ matrix.LOCAL_CTK == '1' && 'local' || 'wheels' }}-${{ matrix.GPU }} - path: cuda_pathfinder/test-info-summary-*.log + path: cuda_pathfinder/pathfinder-test-info-summary-*.txt if-no-files-found: error diff --git a/.github/workflows/test-wheel-windows.yml b/.github/workflows/test-wheel-windows.yml index 4e6dc532d9c..faeed7bece6 100644 --- a/.github/workflows/test-wheel-windows.yml +++ b/.github/workflows/test-wheel-windows.yml @@ -281,5 +281,5 @@ jobs: uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: name: cuda-pathfinder-test-info-${{ inputs.host-platform }}-py${{ matrix.PY_VER }}-cuda${{ matrix.CUDA_VER }}-${{ matrix.LOCAL_CTK == '1' && 'local' || 'wheels' }}-${{ matrix.GPU }} - path: cuda_pathfinder/test-info-summary-*.log + path: cuda_pathfinder/pathfinder-test-info-summary-*.txt if-no-files-found: error diff --git a/.gitignore b/.gitignore index 9bead862d8f..c6806e70063 100644 --- a/.gitignore +++ b/.gitignore @@ -194,5 +194,8 @@ cython_debug/ .pixi/* !.pixi/config.toml +# Pathfinder test info log +pathfinder-test-info-summary-*.txt + # Cursor .cursorrules diff --git a/ci/tools/run-tests b/ci/tools/run-tests index 75b279160ce..d5148f05341 100755 --- a/ci/tools/run-tests +++ b/ci/tools/run-tests @@ -34,6 +34,7 @@ if [[ "${test_module}" == "pathfinder" ]]; then "FH:${CUDA_PATHFINDER_TEST_FIND_NVIDIA_HEADERS_STRICTNESS} " \ "BC:${CUDA_PATHFINDER_TEST_FIND_NVIDIA_BITCODE_LIB_STRICTNESS}" pytest -ra -s -v --durations=0 tests/ + echo "Number of \"INFO test_\" lines: $(cat pathfinder-test-info-summary-*.txt | wc -l)" popd elif [[ "${test_module}" == "bindings" ]]; then echo "Installing bindings wheel" diff --git a/cuda_pathfinder/tests/conftest.py b/cuda_pathfinder/tests/conftest.py index c868e45af4b..bfb30bc3ccd 100644 --- a/cuda_pathfinder/tests/conftest.py +++ b/cuda_pathfinder/tests/conftest.py @@ -10,10 +10,21 @@ _LOGGER_NAME = "cuda_pathfinder.test_info" +def _log_filename(): + strictness = os.environ.get( + "CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS", "see_what_works" + ) + return f"pathfinder-test-info-summary-{strictness}.txt" + + +def pytest_configure(config): + log_path = config.rootpath / _log_filename() + log_path.unlink(missing_ok=True) + + @pytest.fixture(scope="session") def _info_summary_handler(request): - strictness = os.environ.get("CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS", "default") - log_path = request.config.rootpath / f"test-info-summary-{strictness}.log" + log_path = request.config.rootpath / _log_filename() handler = logging.FileHandler(log_path, mode="w") handler.setFormatter(logging.Formatter("%(test_node)s: %(message)s")) From 93373c4c0182c0fc8fcc37be2780374c9cea816b Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Thu, 12 Feb 2026 07:19:00 -0500 Subject: [PATCH 6/7] chore: style Co-authored-by: Cursor --- cuda_pathfinder/tests/conftest.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cuda_pathfinder/tests/conftest.py b/cuda_pathfinder/tests/conftest.py index bfb30bc3ccd..d6c763d0b26 100644 --- a/cuda_pathfinder/tests/conftest.py +++ b/cuda_pathfinder/tests/conftest.py @@ -11,9 +11,7 @@ def _log_filename(): - strictness = os.environ.get( - "CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS", "see_what_works" - ) + strictness = os.environ.get("CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS", "see_what_works") return f"pathfinder-test-info-summary-{strictness}.txt" From db45d36a3b98d2203b57cb85b532804c1a211f98 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Fri, 17 Apr 2026 06:18:00 -0400 Subject: [PATCH 7/7] refactor(pathfinder): apply info_log rename to new upstream tests test_driver_lib_loading.py, test_find_bitcode_lib.py, and test_find_static_lib.py landed on main while this branch was open and still reference the info_summary_append fixture that this PR removes. Switch them to the info_log LoggerAdapter fixture so the rename is complete across the pathfinder test suite. --- cuda_pathfinder/tests/test_driver_lib_loading.py | 6 +++--- cuda_pathfinder/tests/test_find_bitcode_lib.py | 6 +++--- cuda_pathfinder/tests/test_find_static_lib.py | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cuda_pathfinder/tests/test_driver_lib_loading.py b/cuda_pathfinder/tests/test_driver_lib_loading.py index bf62a17d703..7614d4481a2 100644 --- a/cuda_pathfinder/tests/test_driver_lib_loading.py +++ b/cuda_pathfinder/tests/test_driver_lib_loading.py @@ -127,7 +127,7 @@ def test_load_lib_no_cache_does_not_dispatch_ctk_lib_to_driver_path(mocker): @pytest.mark.parametrize("libname", sorted(_DRIVER_ONLY_LIBNAMES)) -def test_real_load_driver_lib(info_summary_append, libname): +def test_real_load_driver_lib(info_log, libname): """Load a real driver library in a dedicated subprocess. This complements the mock tests above: it exercises the actual OS @@ -151,9 +151,9 @@ def raise_child_process_failed(): skip_if_missing_libnvcudla_so(libname, timeout=timeout) if STRICTNESS == "all_must_work": raise_child_process_failed() - info_summary_append(f"Not found: {libname=!r}") + info_log.info(f"Not found: {libname=!r}") else: abs_path = payload.abs_path assert abs_path is not None - info_summary_append(f"abs_path={quote_for_shell(abs_path)}") + info_log.info(f"abs_path={quote_for_shell(abs_path)}") assert os.path.isfile(abs_path) diff --git a/cuda_pathfinder/tests/test_find_bitcode_lib.py b/cuda_pathfinder/tests/test_find_bitcode_lib.py index 7368722d295..7c9db472cff 100644 --- a/cuda_pathfinder/tests/test_find_bitcode_lib.py +++ b/cuda_pathfinder/tests/test_find_bitcode_lib.py @@ -60,17 +60,17 @@ def _located_bitcode_lib_asserts(located_bitcode_lib): @pytest.mark.usefixtures("clear_find_bitcode_lib_cache") @pytest.mark.parametrize("libname", SUPPORTED_BITCODE_LIBS) -def test_locate_bitcode_lib(info_summary_append, libname): +def test_locate_bitcode_lib(info_log, libname): try: located_lib = locate_bitcode_lib(libname) lib_path = find_bitcode_lib(libname) except BitcodeLibNotFoundError: if STRICTNESS == "all_must_work": raise - info_summary_append(f"{libname}: not found") + info_log.info(f"{libname}: not found") return - info_summary_append(f"{lib_path=!r}") + info_log.info(f"{lib_path=!r}") _located_bitcode_lib_asserts(located_lib) assert os.path.isfile(lib_path) assert lib_path == located_lib.abs_path diff --git a/cuda_pathfinder/tests/test_find_static_lib.py b/cuda_pathfinder/tests/test_find_static_lib.py index 2b30aa12011..95d518b5688 100644 --- a/cuda_pathfinder/tests/test_find_static_lib.py +++ b/cuda_pathfinder/tests/test_find_static_lib.py @@ -57,17 +57,17 @@ def _located_static_lib_asserts(located_static_lib): @pytest.mark.usefixtures("clear_find_static_lib_cache") @pytest.mark.parametrize("libname", SUPPORTED_STATIC_LIBS) -def test_locate_static_lib(info_summary_append, libname): +def test_locate_static_lib(info_log, libname): try: located_lib = locate_static_lib(libname) lib_path = find_static_lib(libname) except StaticLibNotFoundError: if STRICTNESS == "all_must_work": raise - info_summary_append(f"{libname}: not found") + info_log.info(f"{libname}: not found") return - info_summary_append(f"abs_path={quote_for_shell(lib_path)}") + info_log.info(f"abs_path={quote_for_shell(lib_path)}") _located_static_lib_asserts(located_lib) assert os.path.isfile(lib_path) assert lib_path == located_lib.abs_path