Skip to content
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

[ToolRunner] Enhanced 'shell' execution option #643

Merged
merged 22 commits into from
Jun 18, 2020
Merged

[ToolRunner] Enhanced 'shell' execution option #643

merged 22 commits into from
Jun 18, 2020

Conversation

egor-bryzgalov
Copy link
Member

@egor-bryzgalov egor-bryzgalov commented Jun 10, 2020

Enhancement for #637

Required to fix issue #12848.
Required for PR #13099

Applied enhancement for shell option to wrap a tool path and arguments with double quotes to ensure that command is handled correctly if it is executed inside shell. The path and arguments are wrapped only if shell property of IExecOptions object set to true.
Added tests.

@damccorm
Copy link

Could you add some tests for this change please?

@egor-bryzgalov egor-bryzgalov marked this pull request as draft June 11, 2020 16:52
@egor-bryzgalov egor-bryzgalov marked this pull request as ready for review June 18, 2020 10:22
Copy link

@alexander-smolyakov alexander-smolyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but please take a look at these comments.

node/test/toolrunnertests.ts Outdated Show resolved Hide resolved
node/toolrunner.ts Outdated Show resolved Hide resolved
node/toolrunner.ts Outdated Show resolved Hide resolved
node/toolrunner.ts Outdated Show resolved Hide resolved
node/toolrunner.ts Outdated Show resolved Hide resolved
node/toolrunner.ts Outdated Show resolved Hide resolved
node/toolrunner.ts Outdated Show resolved Hide resolved
node/toolrunner.ts Show resolved Hide resolved
@egor-bryzgalov
Copy link
Member Author

@damccorm Thank you very much for the review! I've applied changes in accordance with your review points so could you please take a look?

@damccorm
Copy link

Failing windows test is unrelated, I'm going to merge

@damccorm damccorm merged commit 7b32ca7 into microsoft:master Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants