Skip to content
Snippets Groups Projects
Commit 7b0ceafb authored by Matthew Pickering's avatar Matthew Pickering Committed by Marge Bot
Browse files

testsuite: Add more debug output on failure to call ghc-pkg

parent 957fe359
Branches
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ def getStdout(cmd_and_args: List[str]): ...@@ -59,7 +59,7 @@ def getStdout(cmd_and_args: List[str]):
if r != 0: if r != 0:
raise Exception("Command failed: " + str(cmd_and_args)) raise Exception("Command failed: " + str(cmd_and_args))
if stderr: if stderr:
raise Exception("stderr from command: %s\nOutput:\n%s\n" % (cmd_and_args, stderr.decode('utf-8'))) 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') return stdout.decode('utf-8')
def lndir(srcdir: Path, dstdir: Path, force_copy=False): def lndir(srcdir: Path, dstdir: Path, force_copy=False):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment