summaryrefslogtreecommitdiff
path: root/regtest
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2012-12-08 18:45:22 +0100
committerCarlos Garcia Campos <carlosgc@gnome.org>2012-12-08 18:46:30 +0100
commit605c363b04ba3853883010c0a413054fe246d9aa (patch)
treeb3931d0385eb4eb4f26db8e7a04187eeaef8c4d2 /regtest
parent787a8438708397f0a1bf26e93726f544c91533e6 (diff)
regtest: Remove trailing whitespaces
Diffstat (limited to 'regtest')
-rw-r--r--regtest/TestReferences.py10
-rw-r--r--regtest/TestRun.py10
-rw-r--r--regtest/main.py6
3 files changed, 13 insertions, 13 deletions
diff --git a/regtest/TestReferences.py b/regtest/TestReferences.py
index 1d7b005a..6cedb4b6 100644
--- a/regtest/TestReferences.py
+++ b/regtest/TestReferences.py
@@ -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()
diff --git a/regtest/TestRun.py b/regtest/TestRun.py
index 648ea741..5564757c 100644
--- a/regtest/TestRun.py
+++ b/regtest/TestRun.py
@@ -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):
diff --git a/regtest/main.py b/regtest/main.py
index 9ac4c14e..7b42f480 100644
--- a/regtest/main.py
+++ b/regtest/main.py
@@ -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: