exactness: reteruning non-zero value on failure

Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 66369
This commit is contained in:
Aharon Hillel 2011-12-20 08:53:38 +00:00 committed by Tom Hacohen
parent 6cabc271cc
commit 111c5f2259
1 changed files with 20 additions and 0 deletions

View File

@ -332,6 +332,7 @@ then
do_compare "\$*"
fi
_n_tests_failed=0
if [ "\$_remove_fail" ]
then
ls fail_*.txt &> /dev/null
@ -346,6 +347,25 @@ then
fi
fi
fi
status=0
# Compute exit code
if [ "\$nfail" -ne 0 ]
then
status=\$(( \$status | 1 ))
fi
if [ "\$nerr" -ne 0 ]
then
status=\$(( \$status | 2 ))
fi
if [ "\$_n_tests_failed" -ne 0 ]
then
status=\$(( \$status | 4 ))
fi
exit \$status
ENDOFMESSAGE
chmod +x exactness