Beispiel #1
0
 def tearDown(self):
     terminate_or_kill(self.dmProcess, 5)
     unittest.TestCase.tearDown(self)
Beispiel #2
0
 def _stop_manager(self, name, timeout):
     proc = getattr(self, name)
     if proc:
         utils.terminate_or_kill(proc, timeout)
         setattr(self, name, None)
Beispiel #3
0
 def tearDown(self):
     shutil.rmtree(self.temp_dir)
     self.devnull.close()
     utils.terminate_or_kill(self.web_proc, 10)
     unittest.TestCase.tearDown(self)
Beispiel #4
0
 def _stop_manager(self, name, timeout):
     proc = getattr(self, name)
     if proc:
         utils.terminate_or_kill(proc, timeout)
         setattr(self, name, None)
Beispiel #5
0
 def __exit__(self, typ, val, traceback):
     utils.terminate_or_kill(self.proc, self.timeout)
     return False