equal
deleted
inserted
replaced
99 finally: |
99 finally: |
100 semaphore.release() |
100 semaphore.release() |
101 |
101 |
102 reactor.addSystemEventTrigger('after', 'startup', semaphore.release) |
102 reactor.addSystemEventTrigger('after', 'startup', semaphore.release) |
103 t = threading.Thread(target=safe_run, name='cubicweb_test_web_server', |
103 t = threading.Thread(target=safe_run, name='cubicweb_test_web_server', |
104 args=(self.config, True)) |
104 args=(self.config, True), kwargs={'repo': self.repo}) |
105 self.web_thread = t |
105 self.web_thread = t |
106 t.start() |
106 t.start() |
107 semaphore.acquire() |
107 semaphore.acquire() |
108 if not self.web_thread.isAlive(): |
108 if not self.web_thread.isAlive(): |
109 # XXX race condition with actual thread death |
109 # XXX race condition with actual thread death |