@@ -27,7 +27,7 @@ function sync_args_from_cmd(args) {
27
27
process . env . LT_USERNAME
28
28
) ;
29
29
lt_config [ "lambdatest_auth" ] [ "username" ] = process . env . LT_USERNAME ;
30
- }
30
+ }
31
31
} else if (
32
32
process . env . LT_USERNAME &&
33
33
( ! ( "lambdatest_auth" in lt_config ) ||
@@ -41,7 +41,9 @@ function sync_args_from_cmd(args) {
41
41
lt_config [ "lambdatest_auth" ] = { } ;
42
42
}
43
43
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
+ }
45
47
46
48
if (
47
49
"lambdatest_auth" in lt_config &&
@@ -63,6 +65,8 @@ function sync_args_from_cmd(args) {
63
65
}
64
66
console . log ( "Setting access key from environment" ) ;
65
67
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" ] ;
66
70
}
67
71
68
72
if ( ! ( "browsers" in lt_config ) || lt_config [ "browsers" ] . length == 0 ) {
@@ -371,13 +375,13 @@ function sync_args_from_cmd(args) {
371
375
if ( "exclude_specs" in lt_config [ "run_settings" ] ) {
372
376
lt_config [ "run_settings" ] [ "exclude_specs" ] =
373
377
lt_config [ "run_settings" ] [ "exclude_specs" ] . split ( "," ) ;
378
+ console . log (
379
+ "specs to exclude are" ,
380
+ lt_config [ "run_settings" ] [ "exclude_specs" ]
381
+ ) ;
374
382
} else {
375
383
lt_config [ "run_settings" ] [ "exclude_specs" ] == [ ] ;
376
384
}
377
- console . log (
378
- "specs to exclude are" ,
379
- lt_config [ "run_settings" ] [ "exclude_specs" ]
380
- ) ;
381
385
382
386
if ( "npm-f" in args ) {
383
387
if ( args [ "npm-f" ] == "true" ) {
0 commit comments