Skip to content

Commit

Permalink
Update macos-unit-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden authored Nov 17, 2023
1 parent 3dd9671 commit 1e3d451
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/macos-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,19 @@ jobs:
exit 1
fi
cd ..
cmake -DTE_FLOAT=1 ./
make -j4
cd bin
./TETestRunner --reporter JUnit::out=TE-junit2.xml
cat TE-junit2.xml
errors=$(cat TE-junit2.xml | ggrep -Po '(errors)="\K[^"]*')
failures=$(cat TE-junit2.xml | ggrep -Po '(failures)="\K[^"]*')
echo "Error count is: ${errors}"
echo "Failure count is: ${failures}"
if [ "$errors" -gt 0 ]; then
exit 1
fi
if [ "$failures" -gt 0 ]; then
exit 1
fi

0 comments on commit 1e3d451

Please sign in to comment.