@@ -51,7 +51,7 @@ describe("runs", () => {
5151 } ,
5252 } ) ;
5353
54- validateBstackJsonStub . returns ( Promise . reject ( { message : "random-error" } ) ) ;
54+ validateBstackJsonStub . returns ( Promise . reject ( { message : "random-error" } ) ) ;
5555
5656 return runs ( args )
5757 . then ( function ( _bsConfig ) {
@@ -94,6 +94,8 @@ describe("runs", () => {
9494 } ) ;
9595 getErrorCodeFromMsgStub = sandbox . stub ( ) . returns ( "random-error-code" ) ;
9696 capabilityValidatorStub = sandbox . stub ( ) ;
97+ setLocalStub = sandbox . stub ( ) ;
98+ setLocalIdentifierStub = sandbox . stub ( ) ;
9799 deleteResultsStub = sandbox . stub ( ) ;
98100 } ) ;
99101
@@ -119,6 +121,8 @@ describe("runs", () => {
119121 setUserSpecs : setUserSpecsStub ,
120122 setTestEnvs : setTestEnvsStub ,
121123 getConfigPath : getConfigPathStub ,
124+ setLocal : setLocalStub ,
125+ setLocalIdentifier : setLocalIdentifierStub ,
122126 deleteResults : deleteResultsStub
123127 } ,
124128 "../helpers/capabilityHelper" : {
@@ -140,6 +144,8 @@ describe("runs", () => {
140144 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
141145 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
142146 sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
147+ sinon . assert . calledOnce ( setLocalStub ) ;
148+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
143149 sinon . assert . calledOnce ( deleteResultsStub ) ;
144150 sinon . assert . calledOnceWithExactly (
145151 sendUsageReportStub ,
@@ -173,6 +179,8 @@ describe("runs", () => {
173179 capabilityValidatorStub = sandbox . stub ( ) ;
174180 archiverStub = sandbox . stub ( ) ;
175181 deleteZipStub = sandbox . stub ( ) ;
182+ setLocalStub = sandbox . stub ( ) ;
183+ setLocalIdentifierStub = sandbox . stub ( ) ;
176184 deleteResultsStub = sandbox . stub ( ) ;
177185 } ) ;
178186
@@ -198,6 +206,8 @@ describe("runs", () => {
198206 setTestEnvs : setTestEnvsStub ,
199207 setUsageReportingFlag : setUsageReportingFlagStub ,
200208 getConfigPath : getConfigPathStub ,
209+ setLocal : setLocalStub ,
210+ setLocalIdentifier : setLocalIdentifierStub ,
201211 deleteResults : deleteResultsStub
202212 } ,
203213 "../helpers/capabilityHelper" : {
@@ -222,7 +232,9 @@ describe("runs", () => {
222232 . catch ( ( error ) => {
223233 sinon . assert . calledOnce ( getConfigPathStub ) ;
224234 sinon . assert . calledOnce ( getConfigPathStub ) ;
225- sinon . assert . calledOnce ( setParallelsStub )
235+ sinon . assert . calledOnce ( setParallelsStub ) ;
236+ sinon . assert . calledOnce ( setLocalStub ) ;
237+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
226238 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
227239 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
228240 sinon . assert . calledOnce ( archiverStub ) ;
@@ -262,6 +274,8 @@ describe("runs", () => {
262274 archiverStub = sandbox . stub ( ) ;
263275 zipUploadStub = sandbox . stub ( ) ;
264276 deleteZipStub = sandbox . stub ( ) ;
277+ setLocalStub = sandbox . stub ( ) ;
278+ setLocalIdentifierStub = sandbox . stub ( ) ;
265279 deleteResultsStub = sandbox . stub ( ) ;
266280 } ) ;
267281
@@ -287,6 +301,8 @@ describe("runs", () => {
287301 setTestEnvs : setTestEnvsStub ,
288302 setUsageReportingFlag : setUsageReportingFlagStub ,
289303 getConfigPath : getConfigPathStub ,
304+ setLocal : setLocalStub ,
305+ setLocalIdentifier : setLocalIdentifierStub ,
290306 deleteResults : deleteResultsStub
291307 } ,
292308 "../helpers/capabilityHelper" : {
@@ -316,6 +332,8 @@ describe("runs", () => {
316332 sinon . assert . calledOnce ( getConfigPathStub ) ;
317333 sinon . assert . calledOnce ( getConfigPathStub ) ;
318334 sinon . assert . calledOnce ( setParallelsStub ) ;
335+ sinon . assert . calledOnce ( setLocalStub ) ;
336+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
319337 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
320338 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
321339 sinon . assert . calledOnce ( archiverStub ) ;
@@ -359,6 +377,8 @@ describe("runs", () => {
359377 zipUploadStub = sandbox . stub ( ) ;
360378 createBuildStub = sandbox . stub ( ) ;
361379 deleteZipStub = sandbox . stub ( ) ;
380+ setLocalStub = sandbox . stub ( ) ;
381+ setLocalIdentifierStub = sandbox . stub ( ) ;
362382 deleteResultsStub = sandbox . stub ( ) ;
363383 } ) ;
364384
@@ -384,6 +404,8 @@ describe("runs", () => {
384404 setTestEnvs : setTestEnvsStub ,
385405 setUsageReportingFlag : setUsageReportingFlagStub ,
386406 getConfigPath : getConfigPathStub ,
407+ setLocal : setLocalStub ,
408+ setLocalIdentifier : setLocalIdentifierStub ,
387409 deleteResults : deleteResultsStub
388410 } ,
389411 "../helpers/capabilityHelper" : {
@@ -421,6 +443,8 @@ describe("runs", () => {
421443 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
422444 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
423445 sinon . assert . calledOnce ( setParallelsStub ) ;
446+ sinon . assert . calledOnce ( setLocalStub ) ;
447+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
424448 sinon . assert . calledOnce ( archiverStub ) ;
425449 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
426450 sinon . assert . calledOnce ( zipUploadStub ) ;
@@ -471,6 +495,8 @@ describe("runs", () => {
471495 exportResultsStub = sandbox . stub ( ) ;
472496 deleteResultsStub = sandbox . stub ( ) ;
473497 isUndefinedStub = sandbox . stub ( ) ;
498+ setLocalStub = sandbox . stub ( ) ;
499+ setLocalIdentifierStub = sandbox . stub ( ) ;
474500 } ) ;
475501
476502 afterEach ( ( ) => {
@@ -496,6 +522,8 @@ describe("runs", () => {
496522 setUsageReportingFlag : setUsageReportingFlagStub ,
497523 setParallels : setParallelsStub ,
498524 getConfigPath : getConfigPathStub ,
525+ setLocal : setLocalStub ,
526+ setLocalIdentifier : setLocalIdentifierStub ,
499527 exportResults : exportResultsStub ,
500528 deleteResults : deleteResultsStub ,
501529 isUndefined : isUndefinedStub
@@ -538,6 +566,8 @@ describe("runs", () => {
538566 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
539567 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
540568 sinon . assert . calledOnce ( setParallelsStub ) ;
569+ sinon . assert . calledOnce ( setLocalStub ) ;
570+ sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
541571 sinon . assert . calledOnce ( archiverStub ) ;
542572 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
543573 sinon . assert . calledOnce ( zipUploadStub ) ;
0 commit comments