Report stdout from test listing on failure

stdout from `testr list-tests' often contains useful information, so
report it to the user on failure.

Change-Id: Idc9d2e16d64fcdfad1de881a3458d13a7de33471
Closes-Bug: #1533655
This commit is contained in:
Chris St. Pierre 2016-01-13 06:34:56 -06:00
parent 2c355b84a4
commit 921c82be9d

View File

@ -50,6 +50,7 @@ class TestListParser(object):
(stdout, stderr) = process.communicate()
if process.returncode != 0:
self.logger.error(stdout)
self.logger.error(stderr)
raise subprocess.CalledProcessError(process.returncode,
' '.join(cmd))