File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -342,7 +342,10 @@ exports.setLocal = (bsConfig, args) => {
342
342
logger . info (
343
343
'Reading local setting from the environment variable BROWSERSTACK_LOCAL'
344
344
) ;
345
- } else if ( ! this . isUndefined ( args . localMode ) ) {
345
+ } else if (
346
+ this . isUndefined ( bsConfig [ 'connection_settings' ] [ 'local' ] ) &&
347
+ ( ! this . isUndefined ( args . localMode ) || ! this . isUndefined ( bsConfig [ 'connection_settings' ] [ 'local_mode' ] ) )
348
+ ) {
346
349
bsConfig [ 'connection_settings' ] [ 'local' ] = true ;
347
350
bsConfig . connection_settings . local_inferred = localInferred ;
348
351
}
Original file line number Diff line number Diff line change @@ -674,7 +674,6 @@ describe('utils', () => {
674
674
it ( 'bsconfig connection_settings local_inferred as true if serachforOption returns false with args local-mode true' , ( ) => {
675
675
let bsConfig = {
676
676
connection_settings : {
677
- "local" : false
678
677
}
679
678
} ;
680
679
let args = {
You can’t perform that action at this time.
0 commit comments