mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
bundler-assets: find meteor
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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"], {
|
||||
|
||||
Reference in New Issue
Block a user