@@ -27,7 +27,7 @@ function sync_args_from_cmd(args) {
2727 process . env . LT_USERNAME
2828 ) ;
2929 lt_config [ "lambdatest_auth" ] [ "username" ] = process . env . LT_USERNAME ;
30- }
30+ }
3131 } else if (
3232 process . env . LT_USERNAME &&
3333 ( ! ( "lambdatest_auth" in lt_config ) ||
@@ -41,7 +41,9 @@ function sync_args_from_cmd(args) {
4141 lt_config [ "lambdatest_auth" ] = { } ;
4242 }
4343 lt_config [ "lambdatest_auth" ] [ "username" ] = process . env . LT_USERNAME ;
44- }
44+ } else if ( "username" in args && args [ "username" ] != "" ) {
45+ lt_config [ "lambdatest_auth" ] [ "username" ] = args [ "username" ] ;
46+ }
4547
4648 if (
4749 "lambdatest_auth" in lt_config &&
@@ -63,6 +65,8 @@ function sync_args_from_cmd(args) {
6365 }
6466 console . log ( "Setting access key from environment" ) ;
6567 lt_config [ "lambdatest_auth" ] [ "access_key" ] = process . env . LT_ACCESS_KEY ;
68+ } else if ( "access_key" in args && args [ "access_key" ] != "" ) {
69+ lt_config [ "lambdatest_auth" ] [ "access_key" ] = args [ "access_key" ] ;
6670 }
6771
6872 if ( ! ( "browsers" in lt_config ) || lt_config [ "browsers" ] . length == 0 ) {
@@ -371,13 +375,13 @@ function sync_args_from_cmd(args) {
371375 if ( "exclude_specs" in lt_config [ "run_settings" ] ) {
372376 lt_config [ "run_settings" ] [ "exclude_specs" ] =
373377 lt_config [ "run_settings" ] [ "exclude_specs" ] . split ( "," ) ;
378+ console . log (
379+ "specs to exclude are" ,
380+ lt_config [ "run_settings" ] [ "exclude_specs" ]
381+ ) ;
374382 } else {
375383 lt_config [ "run_settings" ] [ "exclude_specs" ] == [ ] ;
376384 }
377- console . log (
378- "specs to exclude are" ,
379- lt_config [ "run_settings" ] [ "exclude_specs" ]
380- ) ;
381385
382386 if ( "npm-f" in args ) {
383387 if ( args [ "npm-f" ] == "true" ) {
0 commit comments