[apparmor] [patch] fix utils/test/runtests-py*.sh exitcode

Christian Boltz apparmor at cboltz.de
Thu Oct 2 20:48:50 UTC 2014


Hello,

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.

=== modified file 'utils/test/runtests-py3.sh'
--- utils/test/runtests-py3.sh  2014-07-22 19:25:25 +0000
+++ utils/test/runtests-py3.sh  2014-10-02 20:37:28 +0000
@@ -24,7 +24,7 @@
        echo
 done
 
-test -n "$failed" && {
+test -z "$failed" || {
        echo
        echo "*** The following tests failed:"
        echo "***   $failed"





Regards,

Christian Boltz
-- 
I've not had any luck reading the manpage and making SWAGs
(Scientific Wild Ass Guesses - Trademark -- Amdahl Corporation).
[Sid Boyce in opensuse-factory]




More information about the AppArmor mailing list