We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3612798 commit 7495359Copy full SHA for 7495359
opendbc/safety/tests/test.sh
@@ -19,14 +19,13 @@ pytest -n8
19
20
# generate and open report
21
if [ "$1" == "--report" ]; then
22
- mkdir -p tests/coverage-out
23
- gcovr -r . --html-details tests/coverage-out/index.html
+ mkdir -p coverage-out
+ gcovr -r ../ --html-nested coverage-out/index.html
24
sensible-browser coverage-out/index.html
25
fi
26
27
# test coverage
28
-cd ..
29
-GCOV="gcovr -r . --fail-under-line=100 -e ^board/ -e ^tests/libsafety/"
+GCOV="gcovr -r ../ --fail-under-line=100 -e ^libsafety -e ^../board"
30
if ! GCOV_OUTPUT="$($GCOV)"; then
31
echo -e "FAILED:\n$GCOV_OUTPUT"
32
exit 1
0 commit comments