aboutsummaryrefslogtreecommitdiff
path: root/tests/integration/test_benchmarks.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/test_benchmarks.py')
-rw-r--r--tests/integration/test_benchmarks.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/integration/test_benchmarks.py b/tests/integration/test_benchmarks.py
index a3b8ef7..cde92c1 100644
--- a/tests/integration/test_benchmarks.py
+++ b/tests/integration/test_benchmarks.py
@@ -27,9 +27,14 @@ class TestDummy(unittest.TestCase):
def test_execution(self):
"""Test if it executes successfully and outputs something"""
cmd = './bench.py -b dummy -a system_default -r 1 -vv'
- res = subprocess.check_output(cmd.split(),
- text=True,
- stderr=subprocess.STDOUT)
+ try:
+ res = subprocess.check_output(cmd.split(),
+ text=True,
+ stderr=subprocess.STDOUT)
+ except subprocess.CalledProcessError as e:
+ print(e.stdout)
+ print(e.stderr)
+ raise
# allocbench should output something
self.assertNotEqual(res, "")