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