File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 4040 pass_filenames : false
4141 always_run : true
4242 stages : [pre-push]
43+ verbose : true
4344
Original file line number Diff line number Diff line change @@ -12,24 +12,24 @@ if [ $CTEST_EXIT -ne 0 ]; then
1212 exit 1
1313fi
1414
15- # Extract summary from ctest output
16- echo " C++/CUDA tests:"
17- echo " $CTEST_OUTPUT " | grep -E " (tests passed|Test #.*Passed)" | head -2 | sed ' s/^/ /'
15+ # Extract summary from ctest output (output to stderr so pre-commit shows it)
16+ echo " C++/CUDA tests:" >&2
17+ echo " $CTEST_OUTPUT " | grep -E " (tests passed|Test #.*Passed)" | head -2 | sed ' s/^/ /' >&2
1818
1919# Run pytest with quiet flag
2020PYTEST_OUTPUT=$( pixi run pytest --quiet 2>&1 )
2121PYTEST_EXIT=$?
2222
2323if [ $PYTEST_EXIT -ne 0 ]; then
24- echo " "
25- echo " Python tests:"
26- echo " $PYTEST_OUTPUT "
24+ echo " " >&2
25+ echo " Python tests:" >&2
26+ echo " $PYTEST_OUTPUT " >&2
2727 exit 1
2828fi
2929
30- # Extract summary from pytest output (quiet mode shows minimal output )
31- echo " Python tests:"
32- echo " $PYTEST_OUTPUT " | grep -E " (passed|failed)" | tail -1 | sed ' s/^/ /'
30+ # Extract summary from pytest output (output to stderr so pre-commit shows it )
31+ echo " Python tests:" >&2
32+ echo " $PYTEST_OUTPUT " | grep -E " (passed|failed)" | tail -1 | sed ' s/^/ /' >&2
3333
3434exit 0
3535
You can’t perform that action at this time.
0 commit comments