Commit 605c363b authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

regtest: Remove trailing whitespaces

parent 787a8438
......@@ -78,20 +78,20 @@ class TestReferences:
doc, n_doc, total_docs = self._queue.get()
self.create_refs_for_file(doc, n_doc, total_docs)
self._queue.task_done()
def create_refs(self):
docs, total_docs = get_document_paths_from_dir(self._docsdir)
self.printer.printout_ln('Process %d is spawning %d worker threads...' % (os.getpid(), self.config.threads))
for n_thread in range(self.config.threads):
thread = Thread(target=self._worker_thread)
thread.daemon = True
thread.start()
n_doc = 0
for doc in docs:
n_doc += 1
self._queue.put( (doc, n_doc, total_docs) )
self._queue.join()
......@@ -161,22 +161,22 @@ class TestRun:
doc, n_doc, total_docs = self._queue.get()
self.run_test(doc, n_doc, total_docs)
self._queue.task_done()
def run_tests(self):
docs, total_docs = get_document_paths_from_dir(self._docsdir)
self.printer.printout_ln('Process %d is spawning %d worker threads...' % (os.getpid(), self.config.threads))
for n_thread in range(self.config.threads):
thread = Thread(target=self._worker_thread)
thread.daemon = True
thread.start()
n_doc = 0
for doc in docs:
n_doc += 1
self._queue.put( (doc, n_doc, total_docs) )
self._queue.join()
def summary(self):
......
......@@ -73,10 +73,10 @@ def main(args):
sys.exit(0)
c = Config(vars(ns))
if c.threads <= 0:
c.threads = cpu_count() - c.threads
c.threads = cpu_count() - c.threads
try:
commands.run(args)
except commands.UnknownCommandError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment