##// END OF EJS Templates
run-tests: kill daemons during Test.cleanup()...
Gregory Szorc -
r21319:44c96e2b default
parent child Browse files
Show More
@@ -555,6 +555,7 b' class Test(object):'
555 555 self._path = path
556 556 self._options = options
557 557 self._count = count
558 self._daemonpids = []
558 559
559 560 # If we're not in --debug mode and reference output file exists,
560 561 # check test output against it.
@@ -571,6 +572,9 b' class Test(object):'
571 572 os.mkdir(self._threadtmp)
572 573
573 574 def cleanup(self):
575 for entry in self._daemonpids:
576 killdaemons(entry)
577
574 578 if self._threadtmp and not self._options.keep_tmpdir:
575 579 shutil.rmtree(self._threadtmp, True)
576 580
@@ -579,6 +583,7 b' class Test(object):'
579 583 os.mkdir(testtmp)
580 584 replacements, port = self._getreplacements(testtmp)
581 585 env = self._getenv(testtmp, port)
586 self._daemonpids.append(env['DAEMON_PIDS'])
582 587 createhgrc(env['HGRCPATH'], self._options)
583 588
584 589 starttime = time.time()
General Comments 0
You need to be logged in to leave comments. Login now