@@ -164,7 +164,7 @@ exports.setParallels = (bsConfig, args, numOfSpecs) => {
164164 }
165165} ;
166166
167- exports . warnSpecLimit = ( bsConfig , args , specFiles ) => {
167+ exports . warnSpecLimit = ( bsConfig , args , specFiles , rawArgs ) => {
168168 let expectedCharLength = specFiles . join ( "" ) . length + Constants . METADATA_CHAR_BUFFER_PER_SPEC * specFiles . length ;
169169 let parallels = bsConfig . run_settings . parallels ;
170170 let combinations = this . getBrowserCombinations ( bsConfig ) . length ;
@@ -177,7 +177,9 @@ exports.warnSpecLimit = (bsConfig, args, specFiles) => {
177177 args ,
178178 Constants . userMessages . SPEC_LIMIT_WARNING ,
179179 Constants . messageTypes . WARNING ,
180- null
180+ null ,
181+ null ,
182+ rawArgs
181183 ) ;
182184 }
183185 }
@@ -595,7 +597,7 @@ exports.setLocalMode = (bsConfig, args) => {
595597 }
596598} ;
597599
598- exports . setupLocalTesting = ( bsConfig , args ) => {
600+ exports . setupLocalTesting = ( bsConfig , args , rawArgs ) => {
599601 return new Promise ( async ( resolve , reject ) => {
600602 if ( bsConfig [ 'connection_settings' ] && bsConfig [ 'connection_settings' ] [ 'local' ] && String ( bsConfig [ 'connection_settings' ] [ 'local' ] ) === "true" ) {
601603 let localIdentifierRunning = await this . checkLocalIdentifierRunning (
@@ -618,7 +620,9 @@ exports.setupLocalTesting = (bsConfig, args) => {
618620 args ,
619621 message ,
620622 Constants . messageTypes . ERROR ,
621- errorCode
623+ errorCode ,
624+ null ,
625+ rawArgs
622626 ) ;
623627 reject ( Constants . userMessages . LOCAL_START_FAILED ) ;
624628 }
@@ -632,7 +636,7 @@ exports.setupLocalTesting = (bsConfig, args) => {
632636 } ) ;
633637} ;
634638
635- exports . stopLocalBinary = ( bsConfig , bs_local , args ) => {
639+ exports . stopLocalBinary = ( bsConfig , bs_local , args , rawArgs ) => {
636640 return new Promise ( async ( resolve , reject ) => {
637641 if ( bsConfig [ 'connection_settings' ] && bsConfig [ 'connection_settings' ] [ 'local' ] ) {
638642 let localIdentifierRunning = await this . checkLocalIdentifierRunning ( bsConfig , bsConfig [ "connection_settings" ] [ "local_identifier" ] ) ;
@@ -644,7 +648,9 @@ exports.stopLocalBinary = (bsConfig, bs_local, args) => {
644648 args ,
645649 message ,
646650 Constants . messageTypes . ERROR ,
647- errorCode
651+ errorCode ,
652+ null ,
653+ rawArgs
648654 ) ;
649655 }
650656 }
@@ -661,7 +667,9 @@ exports.stopLocalBinary = (bsConfig, bs_local, args) => {
661667 args ,
662668 message ,
663669 Constants . messageTypes . ERROR ,
664- errorCode
670+ errorCode ,
671+ null ,
672+ rawArgs
665673 ) ;
666674 resolve ( Constants . userMessages . LOCAL_STOP_FAILED ) ;
667675 }
@@ -944,7 +952,7 @@ exports.setCLIMode = (bsConfig, args) => {
944952 }
945953}
946954
947- exports . stopBrowserStackBuild = async ( bsConfig , args , buildId ) => {
955+ exports . stopBrowserStackBuild = async ( bsConfig , args , buildId , rawArgs ) => {
948956 let url = config . buildStopUrl + buildId ;
949957 let options = {
950958 url : url ,
@@ -1004,7 +1012,7 @@ exports.stopBrowserStackBuild = async (bsConfig, args, buildId ) => {
10041012 errorCode = 'api_failed_build_stop' ;
10051013 logger . info ( message ) ;
10061014 } finally {
1007- this . sendUsageReport ( bsConfig , args , message , messageType , errorCode ) ;
1015+ this . sendUsageReport ( bsConfig , args , message , messageType , errorCode , null , rawArgs ) ;
10081016 }
10091017}
10101018
0 commit comments