diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2010-03-27 13:11:19 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2010-03-27 13:11:19 +0000 |
| commit | 102e11cf6fe6f65688d3788414892dc1ca5520bf (patch) | |
| tree | 02aea1f0588aaf5eba0ad3c604981f27d7efcd97 /docutils/test | |
| parent | b576ef61fc1274a7e82523ace87d62b2a347040e (diff) | |
| download | docutils-102e11cf6fe6f65688d3788414892dc1ca5520bf.tar.gz | |
exit test suite with zero if no problems found (fixes bug 2976941)
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@6296 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test')
| -rwxr-xr-x | docutils/test/alltests.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docutils/test/alltests.py b/docutils/test/alltests.py index 3b27ddacd..96e83fed9 100755 --- a/docutils/test/alltests.py +++ b/docutils/test/alltests.py @@ -83,4 +83,8 @@ if __name__ == '__main__': # print >>sys.stderr, pformat(suite) # check the test suite finish = time.time() print 'Elapsed time: %.3f seconds' % (finish - start) - sys.exit(result) + if result.errors or result.failures: + # return test result object to enable processing in programmatic use + sys.exit(result) + else: # no problems, exit with zero + sys.exit() |
