File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 11var fs = require ( 'fs' ) ;
2+ var minimist = require ( 'minimist' ) ;
23
34var getMockList = require ( './assets/get_mock_list' ) ;
45var getRequestOpts = require ( './assets/get_image_request_options' ) ;
@@ -34,15 +35,22 @@ var QUEUE_WAIT = 10;
3435 * npm run baseline -- gl3d_*
3536 *
3637 */
37- var pattern = process . argv [ 2 ] ;
38- var mockList = getMockList ( pattern ) ;
3938
40- if ( mockList . length === 0 ) {
41- throw new Error ( 'No mocks found with pattern ' + pattern ) ;
42- }
39+ var argv = minimist ( process . argv . slice ( 2 ) , { } ) ;
40+
41+ var allMockList = [ ] ;
42+ argv . _ . forEach ( function ( pattern ) {
43+ var mockList = getMockList ( pattern ) ;
44+
45+ if ( mockList . length === 0 ) {
46+ throw new Error ( 'No mocks found with pattern ' + pattern ) ;
47+ }
48+
49+ allMockList = allMockList . concat ( mockList ) ;
50+ } ) ;
4351
4452// main
45- runInQueue ( mockList ) ;
53+ runInQueue ( allMockList ) ;
4654
4755function runInQueue ( mockList ) {
4856 var index = 0 ;
You can’t perform that action at this time.
0 commit comments