diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-18 04:29:31 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-18 04:29:31 +0300 |
commit | e9c9f169e3fc0a8c86b831fd5e78e324fa037c91 (patch) | |
tree | 924b547b533fb9a6d79b1f42556b68a8f462ec75 | |
parent | test: fix usage messages (diff) | |
download | aes-tools-e9c9f169e3fc0a8c86b831fd5e78e324fa037c91.tar.gz aes-tools-e9c9f169e3fc0a8c86b831fd5e78e324fa037c91.zip |
test/toolkit.py: capture stderr
-rw-r--r-- | test/toolkit.py | 4 |
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() |