Skip to content

Commit 57e89c9

Browse files
committed
Revert "lit: Move RUN at line comment after the command."
This reverts commit 8d3dc1e. Test needs to be updated.
1 parent e417219 commit 57e89c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/docs/CommandGuide/lit.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ OUTPUT OPTIONS
100100

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

llvm/utils/lit/lit/TestRunner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ def executeScript(test, litConfig, tmpBase, commands, cwd):
12311231
# the shell's execution trace for the 'set' commands by
12321232
# redirecting their stderr to /dev/null.
12331233
if command:
1234-
msg = f"{shlex.quote(command.lstrip())} \\# '{dbg}'"
1234+
msg = f"'{dbg}': {shlex.quote(command.lstrip())}"
12351235
else:
12361236
msg = f"'{dbg}' has no command after substitutions"
12371237
commands[i] = (

0 commit comments

Comments
 (0)