Skip to content

Failing tests with spaces in path: " Activation Environment" venv tests #14207

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

Merged

Conversation

kimadeline
Copy link

@kimadeline kimadeline commented Oct 1, 2020

For #14163

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • Title summarizes what is changing.
  • Has a news entry file (remember to thank yourself!).
  • Appropriate comments and documentation strings in the code.
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated.
  • Test plan is updated as appropriate.
  • package-lock.json has been regenerated by running npm install (if dependencies have changed).
  • The wiki is updated with any design decisions/details.

@kimadeline kimadeline added the no-changelog No news entry required label Oct 1, 2020
@codecov-commenter
Copy link

codecov-commenter commented Oct 1, 2020

Codecov Report

Merging #14207 into main will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #14207      +/-   ##
==========================================
- Coverage   59.96%   59.95%   -0.01%     
==========================================
  Files         706      706              
  Lines       39182    39182              
  Branches     5683     5683              
==========================================
- Hits        23494    23493       -1     
- Misses      14451    14452       +1     
  Partials     1237     1237              
Impacted Files Coverage Δ
src/client/common/utils/platform.ts 68.00% <0.00%> (-4.00%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a83c93d...483d4d0. Read the comment docs.

@kimadeline
Copy link
Author

kimadeline commented Oct 1, 2020

image

@kimadeline kimadeline marked this pull request as ready for review October 1, 2020 22:42
@@ -132,7 +132,7 @@ suite('Activation of Environments in Terminal', () => {
): Promise<string> {
const terminal = vscode.window.createTerminal();
await sleep(consoleInitWaitMs);
terminal.sendText(`python ${pythonFile} ${logFile}`, true);
terminal.sendText(`python ${pythonFile.toCommandArgument()} ${logFile.toCommandArgument()}`, true);
Copy link
Author

Choose a reason for hiding this comment

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

Simple quoting works too

Suggested change
terminal.sendText(`python ${pythonFile.toCommandArgument()} ${logFile.toCommandArgument()}`, true);
terminal.sendText(`python '${pythonFile}' '${logFile}'`, true);

Copy link
Member

Choose a reason for hiding this comment

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

toCommandArgument() is better. When we do the shell work it will be easier to find these.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 1, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@kimadeline kimadeline merged commit 192b2e2 into microsoft:main Oct 2, 2020
@kimadeline kimadeline deleted the 14163-space-path-environment-tests branch October 2, 2020 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog No news entry required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants