From 400276a0d81bce47d3eb5fad0530933685637621 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 17 Sep 2025 13:23:55 -0700 Subject: [PATCH 1/2] Fail if no "INFO test_" lines are found in pathfinder test output --- ci/tools/run-tests | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/tools/run-tests b/ci/tools/run-tests index 22d6bd07c6..a470cdc787 100755 --- a/ci/tools/run-tests +++ b/ci/tools/run-tests @@ -35,7 +35,9 @@ if [[ "${test_module}" == "pathfinder" ]]; then "LD:${CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS} " \ "FH:${CUDA_PATHFINDER_TEST_FIND_NVIDIA_HEADERS_STRICTNESS}" pwd - pytest -ra -s -v tests/ + pytest -ra -s -v tests/ |& tee /tmp/pathfinder_test_log.txt + # Fail if no "INFO test_" lines are found; print line count otherwise + grep '^INFO test_' /tmp/pathfinder_test_log.txt | wc -l popd elif [[ "${test_module}" == "bindings" ]]; then pushd "${CUDA_BINDINGS_ARTIFACTS_DIR}" From 2d1e9d4d10e8c9a2f975f706c9434365f657ce9e Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 17 Sep 2025 14:58:00 -0700 Subject: [PATCH 2/2] Number of "INFO test_" lines: 48 --- ci/tools/run-tests | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/tools/run-tests b/ci/tools/run-tests index a470cdc787..0f9e66c27d 100755 --- a/ci/tools/run-tests +++ b/ci/tools/run-tests @@ -36,8 +36,9 @@ if [[ "${test_module}" == "pathfinder" ]]; then "FH:${CUDA_PATHFINDER_TEST_FIND_NVIDIA_HEADERS_STRICTNESS}" pwd pytest -ra -s -v tests/ |& tee /tmp/pathfinder_test_log.txt - # Fail if no "INFO test_" lines are found; print line count otherwise - grep '^INFO test_' /tmp/pathfinder_test_log.txt | wc -l + # Fail if no "INFO test_" lines are found; capture line count otherwise + line_count=$(grep '^INFO test_' /tmp/pathfinder_test_log.txt | wc -l) + echo "Number of \"INFO test_\" lines: $line_count" popd elif [[ "${test_module}" == "bindings" ]]; then pushd "${CUDA_BINDINGS_ARTIFACTS_DIR}"