mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix two self-tests on Windows via files.convertToOSPath
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user