From e8afd396c4ddc133eeea42ac3720dfa27d06e5e3 Mon Sep 17 00:00:00 2001 From: enriquezgarc Date: Tue, 6 Feb 2024 21:04:08 +0100 Subject: [PATCH] tests/psoc6/run_psoc6_tests.sh: Return error code on fails. Signed-off-by: enriquezgarc --- tests/psoc6/run_psoc6_tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/psoc6/run_psoc6_tests.sh b/tests/psoc6/run_psoc6_tests.sh index e402a937999b3..72a3946b61bae 100755 --- a/tests/psoc6/run_psoc6_tests.sh +++ b/tests/psoc6/run_psoc6_tests.sh @@ -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