aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-18 04:29:31 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-18 04:29:31 +0300
commite9c9f169e3fc0a8c86b831fd5e78e324fa037c91 (patch)
tree924b547b533fb9a6d79b1f42556b68a8f462ec75 /test
parenttest: fix usage messages (diff)
downloadaes-tools-e9c9f169e3fc0a8c86b831fd5e78e324fa037c91.tar.gz
aes-tools-e9c9f169e3fc0a8c86b831fd5e78e324fa037c91.zip
test/toolkit.py: capture stderr
Diffstat (limited to 'test')
-rw-r--r--test/toolkit.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/toolkit.py b/test/toolkit.py
index f2c0a3e..ad5afef 100644
--- a/test/toolkit.py
+++ b/test/toolkit.py
@@ -87,9 +87,11 @@ class Tools:
cmd_list.extend(args)
logging.info('Trying to execute: {0}'.format(subprocess.list2cmdline(cmd_list)))
try:
- output = subprocess.check_output(cmd_list, universal_newlines=True)
+ output = subprocess.check_output(cmd_list, universal_newlines=True,
+ stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
logging.exception(e)
+ logging.error('Output:\n' + e.output)
raise ToolkitError() from e
logging.info('Output:\n' + output)
return output.split()