aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-07-19 17:44:27 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-07-20 12:50:32 +0200
commita3dc5adbf253b7fd18423193832c90ac9559c843 (patch)
tree8134bc8f94831bde0130b84ea3f50c9f92b46c6b
parent8bf37e72d41360a920db0df78c6f389f41c879dd (diff)
downloadallocbench-a3dc5adbf253b7fd18423193832c90ac9559c843.tar.gz
allocbench-a3dc5adbf253b7fd18423193832c90ac9559c843.zip
[tests] print output of alloc bench when dummy test fails
-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, "")