[libcxx-commits] [libcxx] 2ab31b6 - [libc++] When run in verbose mode, ssh.py should print to stderr, not stdout
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Sep 21 13:37:54 PDT 2023
Author: Louis Dionne
Date: 2023-09-21T16:37:46-04:00
New Revision: 2ab31b6bab14ad96f55287b0bf47b8ab46fd1f42
URL: https://github.com/llvm/llvm-project/commit/2ab31b6bab14ad96f55287b0bf47b8ab46fd1f42
DIFF: https://github.com/llvm/llvm-project/commit/2ab31b6bab14ad96f55287b0bf47b8ab46fd1f42.diff
LOG: [libc++] When run in verbose mode, ssh.py should print to stderr, not stdout
Otherwise this can mess up the test results which inspect stdout.
Added:
Modified:
libcxx/utils/ssh.py
Removed:
################################################################################
diff --git a/libcxx/utils/ssh.py b/libcxx/utils/ssh.py
index 3f0e2f3adcfe9bc..e1eaa5aae067e79 100755
--- a/libcxx/utils/ssh.py
+++ b/libcxx/utils/ssh.py
@@ -53,7 +53,7 @@ def scp(src, dst):
def runCommand(command, *args_, **kwargs):
if args.verbose:
- print(f"$ {' '.join(command)}")
+ print(f"$ {' '.join(command)}", file=sys.stderr)
return subprocess.run(command, *args_, **kwargs)
# Create a temporary directory where the test will be run.
More information about the libcxx-commits
mailing list