[llvm-dev] [RFC] Changing `lit` default output
Daniel Dunbar via llvm-dev
llvm-dev at lists.llvm.org
Tue May 31 16:48:43 PDT 2016
I have some patches up in:
to make `lit` output more readable when commands fail. I'd like to get a
little more feedback on this before landing, since it impacts how test
failures appear when using the internal shell script runner (which is not
the default so this will currently mostly impact Windows or test frameworks
that intentionally set this behavior).
These patches change the output of a script like `true && echo hi && false`
to something like:
$ echo hi
note: command had no output on stdout or stderr
error: command failed with exit status 1
instead of the old:
Command 0: "true"
Command 0 Result: 0
Command 0 Output:
Command 0 Stderr:
Command 1: "echo" "hi"
Command 1 Result: 0
Command 1 Output:
Command 1 Stderr:
Command 2: "wc" "missing-file"
Command 2 Result: 1
Command 2 Output:
Command 2 Stderr:
which I think is significantly more readable.
One change in the patches is that it will also start including, inline, the
output of files which were redirected. This solves a common problem where a
command fails when it wasn't expected to, and its output was captured. In
such cases the test log just showed the command failure, but since the
output was redirected you couldn't tell from the log why the common failed.
Please let me know if you have any objections to the new format.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev