-
Notifications
You must be signed in to change notification settings - Fork 29.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
test: fix variables quoated when path has spaces on Windows #1122
Conversation
@@ -2,10 +2,10 @@ var common = require('../common'); | |||
var assert = require('assert'); | |||
var exec = require('child_process').exec; | |||
|
|||
var cmd = process.execPath | |||
+ ' ' | |||
var cmd = '"' + process.execPath |
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.
This is really hard to read... Can you make it something like
cmd = '"' + process.execPath + '" ' +
'"' + common.fixturesDir + '/test-regress-GH-4015.js"';
Thanks @shigeki, +1 with the following comments:
|
External commands are enclosed in double quotes so as not to be failed when spaces are included in execPATH especially on Windows.
@piscisaureus Thanks for your reviewing. I fixed styles and the commit message. The commit of vcbuild.bat was removed because it's already fixed, though I should have taken care of it more. PTAL. |
@shigeki Great work, lgtm! |
Paths used on the Windows command line need to be enclosed in double quotes, or they'll be parsed incorrectly when there are spaces in the path. PR-URL: #1122 Reviewed-by: Bert Belder <bertbelder@gmail.com>
Thanks for your patience and good work, @shigeki. |
@piscisaureus Thanks for revising my commit message. It gets more clear and better English. |
This fixes test failures when a path of the repository has spaces on Windows as it was pointed out in
c7ad320#commitcomment-10043315
and also fixes missed
set
in vcbuild.batr= @piscisaureus