Skip to content

Commit

Permalink
fix issue w/ loadtest executable - macbook
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarm08 committed Feb 20, 2017
1 parent 0005b10 commit 1d2cd91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ config.default_commands = {
sleep: 'sleep 5',
process_node_logs: `node --prof-process ./isolate-*`,
testdir_cleanup: `rm -rf ./isolate-* ${config.default_dir}/*.txt`,
path_import: 'source ~/.bashrc && source ~/.profile && LOADTEST=$(npm bin)/loadtest',
path_import: 'source ~/.bashrc; source ~/.profile',
check_dependencies: config.functions.checkDependency('$(npm bin)/loadtest')
};

Expand All @@ -33,7 +33,7 @@ config.clock = {
};

config.loadtest = {
program: '$LOADTEST',
program: '$(npm bin)/loadtest',
bindings: {
'concurrency': '-c',
'requests': '-n',
Expand Down
6 changes: 2 additions & 4 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ const config = require('./config'),
const utils = module.exports = exports = {};

// Platform specific dependencies
if (process.platform === 'linux') {
config.default_commands.check_dependencies = config.functions.checkDependency('$(npm bin)/loadtest');
} else {
if (process.platform !== 'linux') {
config.clock.program = 'gtime --verbose';
config.default_commands.check_dependencies = [config.functions.checkDependency('$(npm bin)/loadtest'), config.functions.checkDependency('gtime')].join('\n');
config.default_commands.check_dependencies += '\n' + config.functions.checkDependency('gtime');
}

/**
Expand Down

0 comments on commit 1d2cd91

Please sign in to comment.