[PATCH] D139592: [llvm-lit] Keep start/end part of the output when truncating
Joel E. Denny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 9 13:12:31 PST 2022
jdenny added a comment.
Sorry, I didn't realize that builtins don't trigger this code. (Feels like a bug... to investigate some other time.)
Instead of echo, you can write a small python script. For example, you could copy `llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py` to `llvm/utils/lit/tests/Inputs/shtest-output-printing/` and change it to write large output. This time you can use a loop instead of hard-coded text.
See `llvm/utils/lit/tests/Inputs/shtest-shell/redirects.txt` for how to call the python script. See `llvm/utils/lit/tests/Inputs/shtest-shell/lit.cfg` for how to define the python substitution.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139592/new/
https://reviews.llvm.org/D139592
More information about the llvm-commits
mailing list