-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for install ssh key task #8283
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Looks like all the uses of ssh-add
are consistent now.
Please hold on this until my PR, #8274, gets through. |
@@ -52,4 +52,19 @@ describe('InstallSSHKey Suite', function () { | |||
|
|||
done(); | |||
}); | |||
|
|||
it('SSH key uninstalled from running agent', (done: MochaDone) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These need to be function ()
for the correct this
context to be captured.
Also, you don't need to pass done
. That's just for testing async callbacks.
This is a narrow fix that will only happen for private agents. If they install an ssh key on a machine that is already running ssh-agent, then the uninstall would only work if 'ssh-add' was in the path.