[libc++] SSH: Use -p when scp'ing to preserve modes and modification times
Cr-Mirrored-From: https://chromium.googlesource.com/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 160b01c9ef6768d4a135bdf27c46ceadb0bc5070
diff --git a/utils/ssh.py b/utils/ssh.py
index 5ba267b..82fc884 100644
--- a/utils/ssh.py
+++ b/utils/ssh.py
@@ -35,7 +35,7 @@
commandLine = remaining[1:] # Skip the '--'
ssh = lambda command: ['ssh', '-oBatchMode=yes', args.host, command]
- scp = lambda src, dst: ['scp', '-oBatchMode=yes', '-r', src, '{}:{}'.format(args.host, dst)]
+ scp = lambda src, dst: ['scp', '-oBatchMode=yes', '-p', '-r', src, '{}:{}'.format(args.host, dst)]
# Create a temporary directory where the test will be run.
tmp = subprocess.check_output(ssh('mktemp -d /tmp/libcxx.XXXXXXXXXX'), universal_newlines=True).strip()