Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/docs/CommandGuide/lit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ OUTPUT OPTIONS

Each command is printed before it is executed. This can be valuable for
debugging test failures, as the last printed command is the one that failed.
Moreover, :program:`lit` inserts ``'RUN: at line N'`` before each
Moreover, :program:`lit` inserts ``'RUN: at line N'`` after each
command pipeline in the output to help you locate the source line of
the failed command.

Expand Down
2 changes: 1 addition & 1 deletion llvm/utils/lit/lit/TestRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ def executeScript(test, litConfig, tmpBase, commands, cwd):
# the shell's execution trace for the 'set' commands by
# redirecting their stderr to /dev/null.
if command:
msg = f"'{dbg}': {shlex.quote(command.lstrip())}"
msg = f"{shlex.quote(command.lstrip())} \\# '{dbg}'"
else:
msg = f"'{dbg}' has no command after substitutions"
commands[i] = (
Expand Down