Show More
@@ -1259,8 +1259,28 b' class TestRunner(object):' | |||
|
1259 | 1259 | def shortDescription(self): |
|
1260 | 1260 | return self.name |
|
1261 | 1261 | |
|
1262 | # Need to stash away the TestResult since we do custom things | |
|
1263 | # with it. | |
|
1264 | def run(self, result): | |
|
1265 | self._result = result | |
|
1266 | ||
|
1267 | return super(MercurialTest, self).run(result) | |
|
1268 | ||
|
1262 | 1269 | def runTest(self): |
|
1263 | t.run() | |
|
1270 | code, tname, msg = t.run() | |
|
1271 | ||
|
1272 | if code == '!': | |
|
1273 | self._result.failures.append((self, msg)) | |
|
1274 | elif code == '~': | |
|
1275 | pass | |
|
1276 | elif code == '.': | |
|
1277 | pass | |
|
1278 | elif code == 's': | |
|
1279 | pass | |
|
1280 | elif code == 'i': | |
|
1281 | pass | |
|
1282 | else: | |
|
1283 | self.fail('Unknown test result code: %s' % code) | |
|
1264 | 1284 | |
|
1265 | 1285 | return MercurialTest(test) |
|
1266 | 1286 |
General Comments 0
You need to be logged in to leave comments.
Login now