aboutsummaryrefslogtreecommitdiff
path: root/tests/test_benchmark.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-12-16 13:49:33 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-12-16 13:49:33 -0800
commitb94ead4dd9613303b85608c321c9b5ca038939f8 (patch)
tree0e932aa21eac211a41e2e94fb8c54b85f6e5d414 /tests/test_benchmark.py
parentbf33399a6196913042186a9de86ae91b5219b7f1 (diff)
fix native benchmark printing of stderr
Diffstat (limited to 'tests/test_benchmark.py')
-rw-r--r--tests/test_benchmark.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_benchmark.py b/tests/test_benchmark.py
index 67db3df0..e29ee3c4 100644
--- a/tests/test_benchmark.py
+++ b/tests/test_benchmark.py
@@ -72,7 +72,8 @@ class NativeBenchmarker(Benchmarker):
self.filename = filename
def run(self, args):
- return self.parent.run_native(self.filename, args)
+ process = Popen([self.filename+'.native'] + args, stdout=PIPE, stderr=PIPE)
+ return process.communicate()[0]
class JSBenchmarker(Benchmarker):
def __init__(self, name, engine, extra_args=[]):