2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 13:58:22 +00:00

fix utils/test/runtests-py*.sh exitcode

utils/test/runtests-py*.sh always exits with $? = 1 even if there is no 
error. This is caused by the last executed command, test -n

This patch changes it to test -z so that we'll get $? = 0 if all tests 
succeed.


Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
Christian Boltz
2014-10-03 11:48:21 +02:00
parent a44b6ce0a2
commit ed1e2f3321

View File

@@ -24,7 +24,7 @@ for file in *.py ; do
echo
done
test -n "$failed" && {
test -z "$failed" || {
echo
echo "*** The following tests failed:"
echo "*** $failed"