Show More
@@ -356,6 +356,8 b' class Test(object):' | |||
|
356 | 356 | self._errpath = errpath |
|
357 | 357 | self._unittest = unittest |
|
358 | 358 | |
|
359 | self._finished = None | |
|
360 | ||
|
359 | 361 | # If we're not in --debug mode and reference output file exists, |
|
360 | 362 | # check test output against it. |
|
361 | 363 | if runner.options.debug: |
@@ -379,12 +381,16 b' class Test(object):' | |||
|
379 | 381 | |
|
380 | 382 | def setUp(self): |
|
381 | 383 | """Tasks to perform before run().""" |
|
384 | self._finished = False | |
|
382 | 385 | |
|
383 | 386 | def run(self): |
|
384 | 387 | """Run this test instance. |
|
385 | 388 | |
|
386 | 389 | This will return a tuple describing the result of the test. |
|
387 | 390 | """ |
|
391 | if not self._unittest: | |
|
392 | self.setUp() | |
|
393 | ||
|
388 | 394 | if not os.path.exists(self._path): |
|
389 | 395 | return self.skip("Doesn't exist") |
|
390 | 396 | |
@@ -426,6 +432,7 b' class Test(object):' | |||
|
426 | 432 | try: |
|
427 | 433 | ret, out = self._run(testtmp, replacements, env) |
|
428 | 434 | duration = time.time() - starttime |
|
435 | self._finished = True | |
|
429 | 436 | except KeyboardInterrupt: |
|
430 | 437 | duration = time.time() - starttime |
|
431 | 438 | log('INTERRUPTED: %s (after %d seconds)' % (self.name, duration)) |
General Comments 0
You need to be logged in to leave comments.
Login now