Fix two self-tests on Windows via files.convertToOSPath

This commit is contained in:
Avital Oliver
2015-02-02 10:50:44 -08:00
parent 67a7a1be50
commit d174d0d134
2 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ var maybeFixRelease = function (env) {
var runOldTest = function (filename, extraEnv) {
var s = new Sandbox;
var run = new Run(process.execPath, {
args: [files.pathResolve(__dirname, 'old', filename)],
args: [files.convertToOSPath(files.pathResolve(__dirname, 'old', filename))],
env: maybeFixRelease(_.extend({
METEOR_TOOL_PATH: s.execPath
}, extraEnv))

View File

@@ -126,8 +126,9 @@ var runTest = function () {
var cp = require('child_process');
var meteor = process.env.METEOR_TOOL_PATH;
var fut = new Future();
// use a non-default port so we don't fail if someone is running an app now
var proc = cp.spawn(meteor, ["--once", "--port", "4123"], {
var proc = cp.exec([files.convertToOSPath(meteor), "--once", "--port", "4123"].join(' '), {
cwd: projectContext.projectDir,
stdio: 'inherit'
});