Skip to content

Commit 50d6de5

Browse files
committed
Move set -x later
We don't really care to see the exports I don't think
1 parent 579bfe7 commit 50d6de5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/lit/lit/TestRunner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,11 +1226,11 @@ def executeScript(test, litConfig, tmpBase, commands, cwd):
12261226
commands[i] += f" && {{ {command}; }}"
12271227
if test.config.pipefail:
12281228
f.write(b"set -o pipefail;" if mode == "wb" else "set -o pipefail;")
1229-
f.write(b"set -x;" if mode == "wb" else "set -x;")
12301229

12311230
env_str = "\n".join("export {}={};".format(k, shlex.quote(v))
12321231
for k, v in test.config.environment.items())
12331232
f.write(bytes(env_str, "utf-8") if mode == "wb" else env_str)
1233+
f.write(b"set -x;" if mode == "wb" else "set -x;")
12341234

12351235
if sys.version_info > (3, 0) and mode == "wb":
12361236
f.write(bytes("{ " + "; } &&\n{ ".join(commands) + "; }", "utf-8"))

0 commit comments

Comments
 (0)