summaryrefslogtreecommitdiff
path: root/900-implements.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-04-21 16:28:34 +0300
committerLars Wirzenius <liw@liw.fi>2017-04-21 16:28:34 +0300
commitddbf9e63a37a9b30e8b25a3328beb0c3e8dd78a2 (patch)
tree2dfe1941d2559b9d6b73f2e04e31dbf5bded062d /900-implements.yarn
parentda7a8042e1b3b620037216860573c9e0d13eb506 (diff)
downloadserver-yarns-ddbf9e63a37a9b30e8b25a3328beb0c3e8dd78a2.tar.gz
Allow test runner to specify ssh key for gitno access
Diffstat (limited to '900-implements.yarn')
-rw-r--r--900-implements.yarn5
1 files changed, 4 insertions, 1 deletions
diff --git a/900-implements.yarn b/900-implements.yarn
index 976e0ce..4fae633 100644
--- a/900-implements.yarn
+++ b/900-implements.yarn
@@ -30,8 +30,11 @@
IMPLEMENTS WHEN user runs Gitano (.*)
address = os.environ['ADDRESS']
+ sshkey = os.environ['SSH_KEY']
cmd = get_next_match()
- argv = ['ssh', 'git@' + address] + cmd.split()
+ argv = [
+ 'ssh', '-oIdentitiesOnly=yes', '-i', sshkey, 'git@' + address
+ ] + cmd.split()
exit, out, err = cliapp.runcmd_unchecked(argv)
vars['argv'] = argv
vars['exit'] = int(exit)