Permalink
Browse files

Added a temp hack for CI env to resolve the path to yui-benchmark cor…

…rectly.
  • Loading branch information...
1 parent 517f6a4 commit 378e2f401581c8e62f5a3fae0d4656eaf528e6a3 @derek committed Mar 27, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/cmds/benchmark.js
View
@@ -21,6 +21,7 @@ var util = require('../util'),
this.module = module;
this.debug = (options.parsed.loglevel == 'debug');
+ this.ci = options.parsed.ci || false;
mod = util.findModule(true);
@@ -111,7 +112,9 @@ var util = require('../util'),
log.debug('Args: ' + argsArr.join(' '));
- child = spawn('yui-benchmark', argsArr, {
+ // A hack for CI until yui-benchmark is a package
+ var cmd = (!this.ci) ? 'yui-benchmark' : path.resolve(__dirname + '/../../node_modules/.bin/yui-benchmark');
+ child = spawn(cmd, argsArr, {
cwd: componentRoot
});

0 comments on commit 378e2f4

Please sign in to comment.