bundler-assets: find meteor

This commit is contained in:
David Glasser
2014-02-06 12:32:07 -08:00
parent b75da89d09
commit a74855d50a
2 changed files with 5 additions and 3 deletions

View File

@@ -19,10 +19,12 @@ var maybeFixRelease = function (env) {
//
// filename is interpreted relative to tools/selftests/old.
var runOldTest = function (filename) {
var env;
var s = new Sandbox;
var run = new Run(process.execPath, {
args: [path.resolve(__dirname, 'old', filename)],
env: maybeFixRelease({})
env: maybeFixRelease({
METEOR_TOOL_PATH: s.execPath
})
});
run.waitSecs(1000);
run.expectExit(0);

View File

@@ -104,7 +104,7 @@ var runTest = function () {
// Run the app to check that Assets.getText/Binary do the right things.
var cp = require('child_process');
var meteor = path.join(__dirname, "..", "..", "..", "meteor"); // XXX is this allowed?
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"], {