Skip to content

Commit 721781f

Browse files
committed
chore: ignore checking for info lines when PYTEST_ADDOPTS is set
1 parent ea45bbf commit 721781f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ci/tools/run-tests

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ if [[ "${test_module}" == "pathfinder" ]]; then
3434
"FH:${CUDA_PATHFINDER_TEST_FIND_NVIDIA_HEADERS_STRICTNESS}"
3535
pytest -ra -s -v --durations=0 tests/ |& tee /tmp/pathfinder_test_log.txt
3636
# Fail if no "INFO test_" lines are found; capture line count otherwise
37-
line_count=$(grep '^INFO test_' /tmp/pathfinder_test_log.txt | wc -l)
38-
echo "Number of \"INFO test_\" lines: $line_count"
37+
if [ -z "${PYTEST_ADDOPTS}" ]; then
38+
line_count=$(grep '^INFO test_' /tmp/pathfinder_test_log.txt | wc -l)
39+
echo "Number of \"INFO test_\" lines: $line_count"
40+
fi
3941
popd
4042
elif [[ "${test_module}" == "bindings" ]]; then
4143
echo "Installing bindings wheel"

0 commit comments

Comments
 (0)