Revert "Test runner: Avoid race condition"

This reverts commit 217812891c.
This commit is contained in:
Mike Pennisi 2016-02-19 10:46:17 -05:00
parent ccf0adfc62
commit 4dd257d7e6
1 changed files with 6 additions and 6 deletions

View File

@ -583,7 +583,6 @@ class TestSuite(object):
SkipCaseElement.append(SkipElement)
TestSuiteElement.append(SkipCaseElement)
threads = []
if workers_count > 1:
pool_sem = threading.Semaphore(workers_count)
log_lock = threading.Lock()
@ -614,13 +613,11 @@ class TestSuite(object):
exec_case()
else:
pool_sem.acquire()
thread = threading.Thread(target=exec_case)
threads.append(thread)
thread.start()
threading.Thread(target=exec_case).start()
pool_sem.release()
for thread in threads:
thread.join()
if workers_count > 1:
log_lock.acquire()
if print_summary:
self.PrintSummary(progress, logname)
@ -631,6 +628,9 @@ class TestSuite(object):
print "Use --full-summary to see output from failed tests"
print
if workers_count > 1:
log_lock.release()
return progress.failed
def WriteLog(self, result):