diff options
-rw-r--r-- | buildscripts/resmokelib/selector.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/buildscripts/resmokelib/selector.py b/buildscripts/resmokelib/selector.py index 5880e2b3c9f..35e094084c7 100644 --- a/buildscripts/resmokelib/selector.py +++ b/buildscripts/resmokelib/selector.py @@ -90,11 +90,12 @@ class TestFileExplorer(object): def list_dbtests(self, dbtest_binary): """List the available dbtests suites.""" - returncode, stdout = self._run_program(dbtest_binary, ["--list"]) + returncode, stdout, stderr = self._run_program(dbtest_binary, ["--list"]) if returncode != 0: - raise errors.ResmokeError("Getting list of dbtest suites failed") - + raise errors.ResmokeError("Getting list of dbtest suites failed" + ", dbtest_binary=`{}`: stdout=`{}`, stderr=`{}`".format( + dbtest_binary, stdout, stderr)) return stdout.splitlines() @staticmethod @@ -109,10 +110,9 @@ class TestFileExplorer(object): """ command = [binary] command.extend(args) - program = subprocess.Popen(command, stdout=subprocess.PIPE) - stdout = program.communicate()[0] - - return program.returncode, stdout.decode("utf-8") + program = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + stdout, stderr = program.communicate() + return program.returncode, stdout.decode("utf-8"), stderr.decode("utf-8") @staticmethod def parse_tag_file(test_kind): |