Fix how sauce runner and tags are parsed.

This commit is contained in:
John-David Dalton
2013-11-13 08:00:02 -08:00
parent 04df06404f
commit 2c8c96149f
2 changed files with 9 additions and 3 deletions

View File

@@ -28,7 +28,10 @@
tunnelId = 'lodash_' + process.env.TRAVIS_JOB_NUMBER;
var runner = process.argv.reduce(function(result, value) {
return optionToValue('runner', value) || result;
value = optionToValue('runner', value);
return value == null
? result
: '/' + value.replace(/^\W+/, '');
}, '/test/index.html');
var sessionName = process.argv.reduce(function(result, value) {
@@ -36,7 +39,10 @@
}, 'lodash tests');
var tags = process.argv.reduce(function(result, value) {
return optionToArray('tags', value) || result;
value = optionToArray('tags', value);
return value.length
? _.union(result, value)
: result;
}, []);
/** List of platforms to load the runner on */