-
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
Fixed issues when writing response file that is passed to vstest.console.exe #4383
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.
Have minor PR comments
Tasks/VsTest/helpers.ts
Outdated
return '\"' + argument + '\"'; | ||
} else { | ||
// we need to add quotes to args we are passing after : as the arg value can have spaces | ||
// we dont need to chnages the guy who is creating the args as toolrunner already takes care of this |
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.
nitpick : spellcheck #Resolved
Tasks/VsTest/helpers.ts
Outdated
}); | ||
} | ||
|
||
public static modifyArgument(argument: string): string { |
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.
rename modifyVstestConsoleArg since it is specific to vstest.console.exe #Closed
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.
well it is not the args specified to vstest console directly but via reponse file. will rename to something like modifyVsTestConsoleArgsForResponseFile
In reply to: 117964774 [](ancestors = 117964774)
Tasks/VsTest/helpers.ts
Outdated
// for response file we need to take care of this ourselves | ||
// eg: /settings:c:\a b\1.settings should become /settings:"C:\a b\1.settings" | ||
let indexOfColon = argument.indexOf(':'); // find if args has ':' | ||
if (indexOfColon > 0 && argument[indexOfColon + 1] !== '\"') { // only process when quotes are not there |
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.
What happens if it already within quotes? #Closed
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.
it wont add quotes again. check the condition. added a test case for the same
In reply to: 117965015 [](ancestors = 117965015)
Issue: if setting file had a space things were not working.