Skip to content

Commit

Permalink
tests/psoc6/run_psoc6_tests.sh: Return error code on fails.
Browse files Browse the repository at this point in the history
Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
  • Loading branch information
jaenrig-ifx committed Feb 6, 2024
1 parent 1bfb4a2 commit e8afd39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/psoc6/run_psoc6_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@ grep -i 'FAIL ' ${resultsFile} > ${failResultsFile}

echo "generating pass, skip and fail files done."

if [ -z "$failResultsFile" ]; then
failures="`cat ${failResultsFile}`"
if [ -z "${failures}" ]; then
exit 0
else
exit 1
Expand Down

0 comments on commit e8afd39

Please sign in to comment.