Skip to content

Commit

Permalink
#224: test_spec.js: METEOR_WAREHOUSE_DIR issue on win32 was fixed plu…
Browse files Browse the repository at this point in the history
…s now it's changed iff there was no such env variable before
  • Loading branch information
yeputons committed Jan 20, 2014
1 parent 5c7e5b5 commit 8fde22d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spec/acceptance/test_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@ before(function(done){
process.env._METEORITE_REAL_CURL = which.sync('curl');
process.env._METEORITE_REAL_METEOR = path.basename(which.sync('meteor'));

// make sure Meteor doesn't try to install into our soon to be clean home dir
process.env.METEOR_WAREHOUSE_DIR = path.join(process.env.HOME, '.meteor');
if (!process.env.METEOR_WAREHOUSE_DIR) {
// make sure Meteor doesn't try to install into our soon to be clean home dir
process.env.METEOR_WAREHOUSE_DIR = path.join(process.env.HOME, '.meteor');
if (process.platform == 'win32') {
process.env.METEOR_WAREHOUSE_DIR = path.join(process.env.LOCALAPPDATA || process.env.APPDATA, '.meteor');
}
}

// set our home dir so we can easily blow away meteorite installs
wrench.mkdirSyncRecursive(appHome);
Expand Down

0 comments on commit 8fde22d

Please sign in to comment.