Skip to content

Commit 7495359

Browse files
authored
Coverage fixups (#1900)
* fixup * test * bye copilot * rev * fix * fix * test again * revert * need
1 parent 3612798 commit 7495359

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

opendbc/safety/tests/test.sh

+3-4
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ pytest -n8
1919

2020
# generate and open report
2121
if [ "$1" == "--report" ]; then
22-
mkdir -p tests/coverage-out
23-
gcovr -r . --html-details tests/coverage-out/index.html
22+
mkdir -p coverage-out
23+
gcovr -r ../ --html-nested coverage-out/index.html
2424
sensible-browser coverage-out/index.html
2525
fi
2626

2727
# test coverage
28-
cd ..
29-
GCOV="gcovr -r . --fail-under-line=100 -e ^board/ -e ^tests/libsafety/"
28+
GCOV="gcovr -r ../ --fail-under-line=100 -e ^libsafety -e ^../board"
3029
if ! GCOV_OUTPUT="$($GCOV)"; then
3130
echo -e "FAILED:\n$GCOV_OUTPUT"
3231
exit 1

0 commit comments

Comments
 (0)