##// END OF EJS Templates
run-tests: kill daemons during tearDown()
Gregory Szorc -
r21456:a06a4142 default
parent child Browse files
Show More
@@ -456,8 +456,6 b' class Test(object):'
456 except Exception, e:
456 except Exception, e:
457 return self.fail('Exception during execution: %s' % e, 255)
457 return self.fail('Exception during execution: %s' % e, 255)
458
458
459 killdaemons(env['DAEMON_PIDS'])
460
461 def describe(ret):
459 def describe(ret):
462 if ret < 0:
460 if ret < 0:
463 return 'killed by signal: %d' % -ret
461 return 'killed by signal: %d' % -ret
@@ -522,6 +520,10 b' class Test(object):'
522
520
523 def tearDown(self):
521 def tearDown(self):
524 """Tasks to perform after run()."""
522 """Tasks to perform after run()."""
523 for entry in self._daemonpids:
524 killdaemons(entry)
525 self._daemonpids = []
526
525 if not self._options.keep_tmpdir:
527 if not self._options.keep_tmpdir:
526 shutil.rmtree(self._testtmp)
528 shutil.rmtree(self._testtmp)
527
529
General Comments 0
You need to be logged in to leave comments. Login now