Skip to content

Commit 953b885

Browse files
committed
wip: bugfix with dirPath
1 parent 6f0beb1 commit 953b885

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/models/addon-test-app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ AddonTestApp.prototype.create = function(appName, options) {
2424

2525
return pristine.createApp(appName, options)
2626
.then(appPath => {
27+
if (!appPath) {
28+
return Promise.reject('createApp failed');
29+
}
2730
this.path = appPath;
2831
return options.noFixtures ?
2932
Promise.resolve() :

lib/utilities/run-ember.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ const runCommand = require('./run-command');
66

77
module.exports = function(command, options, dirPath) {
88
let emberCLIPath = findup('node_modules/ember-cli', {
9-
cwd: dirPath || __dirname
9+
cwd: dirPath ? !dirPath.includes('/var') ? dirPath || __dirname : __dirname : __dirname
1010
});
1111

12-
let args = [path.join(emberCLIPath, 'bin', 'ember'), command].concat(options);
12+
let args = ['node', path.join(emberCLIPath, 'bin', 'ember'), command].concat(options);
1313

1414
return runCommand.apply(undefined, args);
1515
};

0 commit comments

Comments
 (0)