diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2021-07-13 18:58:59 +0100 |
---|---|---|
committer | Zubin Duggal <zubin.duggal@gmail.com> | 2021-08-04 18:25:26 +0530 |
commit | 7d62602ff0f564c16e5d266258553834ec52aad6 (patch) | |
tree | 4c46ebd31b40bb46f9fc6ab7df68d89b9ce18d88 | |
parent | 1fed638ecf9385422d25edd4f080abbf5f6d6aa1 (diff) | |
download | haskell-7d62602ff0f564c16e5d266258553834ec52aad6.tar.gz |
testsuite: Add more debug output on failure to call ghc-pkg
(cherry picked from commit 7b0ceafbc7f20ed1b53952bae90403cb4f08feda)
-rw-r--r-- | testsuite/driver/testutil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/driver/testutil.py b/testsuite/driver/testutil.py index aa12c31690..485e8e660a 100644 --- a/testsuite/driver/testutil.py +++ b/testsuite/driver/testutil.py @@ -60,7 +60,7 @@ def getStdout(cmd_and_args: List[str]): if r != 0: raise Exception("Command failed: " + str(cmd_and_args)) if stderr: - raise Exception("stderr from command: %s\nOutput:\n%s\n" % (cmd_and_args, stderr)) + raise Exception("stderr from command: %s\nStdOut(%s):\n%s\n%s\nOutput(%s):\n%s\n%s\n" % (cmd_and_args,str(len(stdout)), stdout, stdout.decode('utf-8'), str(len(stderr)), stderr, stderr.decode('utf-8'))) return stdout.decode('utf-8') def lndir(srcdir: Path, dstdir: Path): |