Skip to content

Commit

Permalink
Bug 1147271 - Add ssh option to prevent hanging on password prompt in…
Browse files Browse the repository at this point in the history
… upload.py r=mshal

MozReview-Commit-ID: Lmg5SAtLuE3

--HG--
extra : rebase_source : 80f753be34759a366a6cf10847a546f9484d40ca
  • Loading branch information
chmanchester committed May 11, 2017
1 parent 9c6cf33 commit 756229e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ def AppendOptionalArgsToSSHCommandline(cmdline, port, ssh_key):
if not ssh_key.startswith('~'):
ssh_key = WindowsPathToMsysPath(ssh_key)
cmdline.extend(["-o", "IdentityFile=%s" % ssh_key])
# In case of an issue here we don't want to hang on a password prompt.
cmdline.extend(["-o", "BatchMode=yes"])

def DoSSHCommand(command, user, host, port=None, ssh_key=None):
"""Execute command on user@host using ssh. Optionally use
Expand Down

0 comments on commit 756229e

Please sign in to comment.