@@ -104,7 +104,7 @@ function cleanUpAndExit(signal, status) {
104104
105105function getTestBrowserInfo ( browserString , path ) {
106106 var info = browserString ;
107- if ( config . multipleTest ) {
107+ if ( config . multipleTest ) {
108108 info += ", " + path ;
109109 }
110110 return info ;
@@ -145,7 +145,7 @@ function launchBrowser(browser, path) {
145145 }
146146
147147 timeout = parseInt ( config . timeout ) ;
148- if ( ! isNaN ( timeout ) ) {
148+ if ( ! isNaN ( timeout ) ) {
149149 browser . timeout = timeout ;
150150 } else {
151151 timeout = 300 ;
@@ -166,6 +166,7 @@ function launchBrowser(browser, path) {
166166 worker . config = browser ;
167167 worker . string = browserString ;
168168 worker . test_path = path ;
169+ worker . path_index = 0 ;
169170 workers [ key ] = worker ;
170171 workerKeys [ worker . id ] = { key : key , marked : false } ;
171172 } ) ;
@@ -174,11 +175,9 @@ function launchBrowser(browser, path) {
174175
175176function launchBrowsers ( config , browser ) {
176177 setTimeout ( function ( ) {
177- if ( Object . prototype . toString . call ( config . test_path ) === '[object Array]' ) {
178+ if ( Object . prototype . toString . call ( config . test_path ) === '[object Array]' ) {
178179 config . multipleTest = config . test_path . length > 1 ? true : false ;
179- config . test_path . forEach ( function ( path ) {
180- launchBrowser ( browser , path ) ;
181- } ) ;
180+ launchBrowser ( browser , config . test_path [ 0 ] ) ;
182181 } else {
183182 config . multipleTest = false ;
184183 launchBrowser ( browser , config . test_path ) ;
@@ -277,8 +276,8 @@ function runTests() {
277276 launchServer ( ) ;
278277 tunnel = new Tunnel ( config . key , serverPort , config . tunnelIdentifier , function ( ) {
279278 statusPoller . start ( ) ;
280- var total_workers = config . browsers . length * ( Object . prototype . toString . call ( config . test_path ) === '[object Array]' ? config . test_path . length : 1 ) ;
281- logger . info ( "Launching " + total_workers + " workers " ) ;
279+ var total_runs = config . browsers . length * ( Object . prototype . toString . call ( config . test_path ) === '[object Array]' ? config . test_path . length : 1 ) ;
280+ logger . info ( "Launching " + config . browsers . length + " worker(s) for " + total_runs + " run(s). ") ;
282281 browsers . forEach ( function ( browser ) {
283282 if ( browser . browser_version === "latest" ) {
284283 logger . debug ( "[%s] Finding version." , utils . browserString ( browser ) ) ;
0 commit comments