Skip to content

Commit

Permalink
Turn off (very clever!) verbose rerunning of tests on test fail. Now …
Browse files Browse the repository at this point in the history
…outputs only failed tests.
  • Loading branch information
mangtronix committed Oct 16, 2009
1 parent 8c1a9b1 commit 2db93dd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/run.py
Expand Up @@ -42,9 +42,9 @@
(numFail, numTests) = doctest.testfile(test)
print '%s: %d out of %d passed' % (test, (numTests - numFail), numTests)

if numFail:
print 'Rerunning test in verbose mode!'
doctest.testfile(test, verbose=True)
# if numFail:
# print 'Rerunning test in verbose mode!'
# doctest.testfile(test, verbose=True)

testmodules = glob.glob('../bookserver/*.py')
testmodules += glob.glob('../bookserver/catalog/*.py')
Expand All @@ -58,7 +58,7 @@
if '' != output:
print output

if (0 != status) or ('' != output):
print 'Rerunning test in verbose mode!'
(status, output) = commands.getstatusoutput('python ' + test + ' -v')
print output
# if (0 != status) or ('' != output):
# print 'Rerunning test in verbose mode!'
# (status, output) = commands.getstatusoutput('python ' + test + ' -v')
# print output

0 comments on commit 2db93dd

Please sign in to comment.