Show More
@@ -662,6 +662,10 b' class Test(object):' | |||||
662 | msg += 'output changed' |
|
662 | msg += 'output changed' | |
663 |
|
663 | |||
664 | return self.fail(msg, ret) |
|
664 | return self.fail(msg, ret) | |
|
665 | elif ret: | |||
|
666 | return self.fail(describe(ret), ret) | |||
|
667 | else: | |||
|
668 | return self.success() | |||
665 |
|
669 | |||
666 | def _run(self, testtmp, replacements, env): |
|
670 | def _run(self, testtmp, replacements, env): | |
667 | raise NotImplemented('Subclasses must implement Test.run()') |
|
671 | raise NotImplemented('Subclasses must implement Test.run()') | |
@@ -1163,13 +1167,6 b' def runone(options, test, count):' | |||||
1163 | f.write(line) |
|
1167 | f.write(line) | |
1164 | f.close() |
|
1168 | f.close() | |
1165 |
|
1169 | |||
1166 | if result: |
|
|||
1167 | pass |
|
|||
1168 | elif ret: |
|
|||
1169 | result = t.fail(describe(ret), ret) |
|
|||
1170 | else: |
|
|||
1171 | result = t.success() |
|
|||
1172 |
|
||||
1173 | if not options.verbose: |
|
1170 | if not options.verbose: | |
1174 | iolock.acquire() |
|
1171 | iolock.acquire() | |
1175 | sys.stdout.write(result[0]) |
|
1172 | sys.stdout.write(result[0]) |
General Comments 0
You need to be logged in to leave comments.
Login now