summaryrefslogtreecommitdiff
path: root/regtest/backends
diff options
context:
space:
mode:
authorAdam Reichold <adamreichold@myopera.com>2012-12-06 18:45:46 +0100
committerCarlos Garcia Campos <carlosgc@gnome.org>2012-12-06 19:39:36 +0100
commit15dcc5426ce319429e1a2c518902effb2ddf06cf (patch)
tree3accf6f6b9baf12af8d69b121c4f997b17ba98e6 /regtest/backends
parentc46646020826136b403e9aae8e2ded24c7165522 (diff)
implement parallel testing using Python's Queue class
Diffstat (limited to 'regtest/backends')
-rw-r--r--regtest/backends/cairo.py5
-rw-r--r--regtest/backends/splash.py5
2 files changed, 4 insertions, 6 deletions
diff --git a/regtest/backends/cairo.py b/regtest/backends/cairo.py
index 304783ea..3593342e 100644
--- a/regtest/backends/cairo.py
+++ b/regtest/backends/cairo.py
@@ -28,9 +28,8 @@ class Cairo(Backend):
def create_refs(self, doc_path, refs_path):
out_path = os.path.join(refs_path, 'cairo')
- p1 = subprocess.Popen([self._pdftocairo, '-cropbox', '-r', '72', '-e', '-png', doc_path, out_path], stderr = subprocess.PIPE)
- p2 = subprocess.Popen([self._pdftocairo, '-cropbox', '-r', '72', '-o', '-png', doc_path, out_path], stderr = subprocess.PIPE)
- return self._check_exit_status2(p1, p2, out_path)
+ p = subprocess.Popen([self._pdftocairo, '-cropbox', '-r', '72', '-png', doc_path, out_path], stderr = subprocess.PIPE)
+ return self._check_exit_status(p, out_path)
def _create_diff(self, ref_path, result_path):
self._diff_png(ref_path, result_path)
diff --git a/regtest/backends/splash.py b/regtest/backends/splash.py
index 3144bc75..aadbdec9 100644
--- a/regtest/backends/splash.py
+++ b/regtest/backends/splash.py
@@ -28,9 +28,8 @@ class Splash(Backend):
def create_refs(self, doc_path, refs_path):
out_path = os.path.join(refs_path, 'splash')
- p1 = subprocess.Popen([self._pdftoppm, '-cropbox', '-r', '72', '-e', '-png', doc_path, out_path], stderr = subprocess.PIPE)
- p2 = subprocess.Popen([self._pdftoppm, '-cropbox', '-r', '72', '-o', '-png', doc_path, out_path], stderr = subprocess.PIPE)
- return self._check_exit_status2(p1, p2, out_path)
+ p = subprocess.Popen([self._pdftoppm, '-cropbox', '-r', '72', '-png', doc_path, out_path], stderr = subprocess.PIPE)
+ return self._check_exit_status(p, out_path)
def _create_diff(self, ref_path, result_path):
self._diff_png(ref_path, result_path)