Skip to content

Commit c4f18d6

Browse files
committed
remote-exec: Only copy command line arguments which name files that exist.
Speculative fix for failing buildbot: https://lab.llvm.org/buildbot/#/builders/193/builds/8961
1 parent 831b198 commit c4f18d6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llvm/utils/remote-exec.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,12 @@ def main():
130130
]
131131
)
132132
else:
133-
# Copy only the files, which are specified in the command line.
134-
# Copy them to remote host one by one.
133+
# Copy only files which are specified in the command line and exist on
134+
# the host. Copy them to the remote host one by one.
135135
for x in commandLine:
136-
_, f = os.path.split(x)
137-
subprocess.check_call(scp(args, x, pathOnRemote(f)))
136+
if os.path.exists(x):
137+
_, f = os.path.split(x)
138+
subprocess.check_call(scp(args, x, pathOnRemote(f)))
138139

139140
# Make sure all executables in the remote command line have 'execute'
140141
# permissions on the remote host. The host that compiled the test-executable

0 commit comments

Comments
 (0)