@@ -164,7 +164,7 @@ exports.setParallels = (bsConfig, args, numOfSpecs) => {
164
164
}
165
165
} ;
166
166
167
- exports . warnSpecLimit = ( bsConfig , args , specFiles ) => {
167
+ exports . warnSpecLimit = ( bsConfig , args , specFiles , rawArgs ) => {
168
168
let expectedCharLength = specFiles . join ( "" ) . length + Constants . METADATA_CHAR_BUFFER_PER_SPEC * specFiles . length ;
169
169
let parallels = bsConfig . run_settings . parallels ;
170
170
let combinations = this . getBrowserCombinations ( bsConfig ) . length ;
@@ -177,7 +177,9 @@ exports.warnSpecLimit = (bsConfig, args, specFiles) => {
177
177
args ,
178
178
Constants . userMessages . SPEC_LIMIT_WARNING ,
179
179
Constants . messageTypes . WARNING ,
180
- null
180
+ null ,
181
+ null ,
182
+ rawArgs
181
183
) ;
182
184
}
183
185
}
@@ -595,7 +597,7 @@ exports.setLocalMode = (bsConfig, args) => {
595
597
}
596
598
} ;
597
599
598
- exports . setupLocalTesting = ( bsConfig , args ) => {
600
+ exports . setupLocalTesting = ( bsConfig , args , rawArgs ) => {
599
601
return new Promise ( async ( resolve , reject ) => {
600
602
if ( bsConfig [ 'connection_settings' ] && bsConfig [ 'connection_settings' ] [ 'local' ] && String ( bsConfig [ 'connection_settings' ] [ 'local' ] ) === "true" ) {
601
603
let localIdentifierRunning = await this . checkLocalIdentifierRunning (
@@ -618,7 +620,9 @@ exports.setupLocalTesting = (bsConfig, args) => {
618
620
args ,
619
621
message ,
620
622
Constants . messageTypes . ERROR ,
621
- errorCode
623
+ errorCode ,
624
+ null ,
625
+ rawArgs
622
626
) ;
623
627
reject ( Constants . userMessages . LOCAL_START_FAILED ) ;
624
628
}
@@ -632,7 +636,7 @@ exports.setupLocalTesting = (bsConfig, args) => {
632
636
} ) ;
633
637
} ;
634
638
635
- exports . stopLocalBinary = ( bsConfig , bs_local , args ) => {
639
+ exports . stopLocalBinary = ( bsConfig , bs_local , args , rawArgs ) => {
636
640
return new Promise ( async ( resolve , reject ) => {
637
641
if ( bsConfig [ 'connection_settings' ] && bsConfig [ 'connection_settings' ] [ 'local' ] ) {
638
642
let localIdentifierRunning = await this . checkLocalIdentifierRunning ( bsConfig , bsConfig [ "connection_settings" ] [ "local_identifier" ] ) ;
@@ -644,7 +648,9 @@ exports.stopLocalBinary = (bsConfig, bs_local, args) => {
644
648
args ,
645
649
message ,
646
650
Constants . messageTypes . ERROR ,
647
- errorCode
651
+ errorCode ,
652
+ null ,
653
+ rawArgs
648
654
) ;
649
655
}
650
656
}
@@ -661,7 +667,9 @@ exports.stopLocalBinary = (bsConfig, bs_local, args) => {
661
667
args ,
662
668
message ,
663
669
Constants . messageTypes . ERROR ,
664
- errorCode
670
+ errorCode ,
671
+ null ,
672
+ rawArgs
665
673
) ;
666
674
resolve ( Constants . userMessages . LOCAL_STOP_FAILED ) ;
667
675
}
@@ -944,7 +952,7 @@ exports.setCLIMode = (bsConfig, args) => {
944
952
}
945
953
}
946
954
947
- exports . stopBrowserStackBuild = async ( bsConfig , args , buildId ) => {
955
+ exports . stopBrowserStackBuild = async ( bsConfig , args , buildId , rawArgs ) => {
948
956
let url = config . buildStopUrl + buildId ;
949
957
let options = {
950
958
url : url ,
@@ -1004,7 +1012,7 @@ exports.stopBrowserStackBuild = async (bsConfig, args, buildId ) => {
1004
1012
errorCode = 'api_failed_build_stop' ;
1005
1013
logger . info ( message ) ;
1006
1014
} finally {
1007
- this . sendUsageReport ( bsConfig , args , message , messageType , errorCode ) ;
1015
+ this . sendUsageReport ( bsConfig , args , message , messageType , errorCode , null , rawArgs ) ;
1008
1016
}
1009
1017
}
1010
1018
0 commit comments