Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #776 from lzhan/develop-perf
Browse files Browse the repository at this point in the history
update app starting command so that args are dynamically added
  • Loading branch information
lzhan committed Nov 21, 2012
2 parents dac5dd7 + bbb504a commit bba2079
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/run.js
Expand Up @@ -329,7 +329,15 @@ function runMojitoApp (cliOptions, basePath, path, port, params, callback) {
}
params = params || '';
console.log('Starting ' + path + ' at port ' + port + ' with params ' + (params || 'empty'));
p = runCommand(basePath + '/' + path, cwd + "/../bin/mojito", ["start", port, "--context", params], function () {});
var cmdArgs = ['start'];
if (port) {
cmdArgs.push(port);
}
if (params) {
cmdArgs.push('--context');
cmdArgs.push(params);
}
p = runCommand(basePath + '/' + path, cwd + "/../bin/mojito", cmdArgs, function () {});
pids.push(p.pid);
pidNames[p.pid] = libpath.basename(path) + ':' + port + (params ? '?' + params : '');
p.stdout.on('data', listener);
Expand Down

0 comments on commit bba2079

Please sign in to comment.