mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 05:47:59 +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:
parent
a44b6ce0a2
commit
ed1e2f3321
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user