regtest/TestReferences.py | 10 +++++----- regtest/TestRun.py | 10 +++++----- regtest/main.py | 6 +++--- 3 files changed, 13 insertions(+), 13 deletions(-)
New commits: commit 605c363b04ba3853883010c0a413054fe246d9aa Author: Carlos Garcia Campos <[email protected]> Date: Sat Dec 8 18:45:22 2012 +0100 regtest: Remove trailing whitespaces diff --git a/regtest/TestReferences.py b/regtest/TestReferences.py index 1d7b005..6cedb4b 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 648ea74..5564757 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 9ac4c14..7b42f48 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: _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
