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

Fixed issues when writing response file that is passed to vstest.console.exe #4383

Merged
merged 9 commits into from
May 24, 2017

Conversation

acesiddhu
Copy link
Contributor

Issue: if setting file had a space things were not working.

Copy link
Member

@RanjanarMS RanjanarMS left a 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

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
Copy link
Member

@RanjanarMS RanjanarMS May 23, 2017

Choose a reason for hiding this comment

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

nitpick : spellcheck #Resolved

});
}

public static modifyArgument(argument: string): string {
Copy link
Member

@RanjanarMS RanjanarMS May 23, 2017

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

Copy link
Contributor Author

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)

// 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
Copy link
Member

@RanjanarMS RanjanarMS May 23, 2017

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

Copy link
Contributor Author

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)

@acesiddhu acesiddhu merged commit bf02a35 into master May 24, 2017
@bryanmacfarlane bryanmacfarlane deleted the users/siddhap/settingfix branch January 31, 2018 00:33
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.

5 participants