Represent the outcome of tests in the exit code.

This is relevant only for directly running tests/alltests.py;
(python setup.py tests) doesn't use this.

For more information and to follow the discussion about this bug go to
https://bugzilla.osafoundation.org/show_bug.cgi?id=13099