@@ -104,7 +104,7 @@ function cleanUpAndExit(signal, status) {
104
104
105
105
function getTestBrowserInfo ( browserString , path ) {
106
106
var info = browserString ;
107
- if ( config . multipleTest ) {
107
+ if ( config . multipleTest ) {
108
108
info += ", " + path ;
109
109
}
110
110
return info ;
@@ -145,7 +145,7 @@ function launchBrowser(browser, path) {
145
145
}
146
146
147
147
timeout = parseInt ( config . timeout ) ;
148
- if ( ! isNaN ( timeout ) ) {
148
+ if ( ! isNaN ( timeout ) ) {
149
149
browser . timeout = timeout ;
150
150
} else {
151
151
timeout = 300 ;
@@ -166,6 +166,7 @@ function launchBrowser(browser, path) {
166
166
worker . config = browser ;
167
167
worker . string = browserString ;
168
168
worker . test_path = path ;
169
+ worker . path_index = 0 ;
169
170
workers [ key ] = worker ;
170
171
workerKeys [ worker . id ] = { key : key , marked : false } ;
171
172
} ) ;
@@ -174,11 +175,9 @@ function launchBrowser(browser, path) {
174
175
175
176
function launchBrowsers ( config , browser ) {
176
177
setTimeout ( function ( ) {
177
- if ( Object . prototype . toString . call ( config . test_path ) === '[object Array]' ) {
178
+ if ( Object . prototype . toString . call ( config . test_path ) === '[object Array]' ) {
178
179
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 ] ) ;
182
181
} else {
183
182
config . multipleTest = false ;
184
183
launchBrowser ( browser , config . test_path ) ;
@@ -277,8 +276,8 @@ function runTests() {
277
276
launchServer ( ) ;
278
277
tunnel = new Tunnel ( config . key , serverPort , config . tunnelIdentifier , function ( ) {
279
278
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). ") ;
282
281
browsers . forEach ( function ( browser ) {
283
282
if ( browser . browser_version === "latest" ) {
284
283
logger . debug ( "[%s] Finding version." , utils . browserString ( browser ) ) ;
0 commit comments