Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix(configParser): don't run suite if specs are supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
hankduan committed May 20, 2014
1 parent d35285f commit 95093c3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/configParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,14 @@ ConfigParser.getSpecs = function(config) {
return config.suites[config.suite];
}

var specs = config.specs || [];
if (config.specs.length > 0) {
return config.specs
}

var specs = [];
_.forEach(config.suites, function(suite) {
specs = _.union(specs, makeArray(suite));
});

return specs;
};

Expand Down

0 comments on commit 95093c3

Please sign in to comment.