@@ -27,6 +27,7 @@ describe("runs", () => {
2727 return "end" ;
2828 } ) ;
2929 getErrorCodeFromErrStub = sandbox . stub ( ) . returns ( "random-error-code" ) ;
30+ deleteResultsStub = sandbox . stub ( ) ;
3031 } ) ;
3132
3233 afterEach ( ( ) => {
@@ -45,7 +46,8 @@ describe("runs", () => {
4546 getErrorCodeFromErr : getErrorCodeFromErrStub ,
4647 sendUsageReport : sendUsageReportStub ,
4748 setUsageReportingFlag : setUsageReportingFlagStub ,
48- getConfigPath : getConfigPathStub
49+ getConfigPath : getConfigPathStub ,
50+ deleteResults : deleteResultsStub
4951 } ,
5052 } ) ;
5153
@@ -61,6 +63,7 @@ describe("runs", () => {
6163 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
6264 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
6365 sinon . assert . calledOnce ( getErrorCodeFromErrStub ) ;
66+ sinon . assert . calledOnce ( deleteResultsStub ) ;
6467 sinon . assert . calledOnceWithExactly (
6568 sendUsageReportStub ,
6669 null ,
@@ -91,6 +94,7 @@ describe("runs", () => {
9194 capabilityValidatorStub = sandbox . stub ( ) ;
9295 setLocalStub = sandbox . stub ( ) ;
9396 setLocalIdentifierStub = sandbox . stub ( ) ;
97+ deleteResultsStub = sandbox . stub ( ) ;
9498 } ) ;
9599
96100 afterEach ( ( ) => {
@@ -114,7 +118,8 @@ describe("runs", () => {
114118 setBuildName : setBuildNameStub ,
115119 getConfigPath : getConfigPathStub ,
116120 setLocal : setLocalStub ,
117- setLocalIdentifier : setLocalIdentifierStub
121+ setLocalIdentifier : setLocalIdentifierStub ,
122+ deleteResults : deleteResultsStub
118123 } ,
119124 "../helpers/capabilityHelper" : {
120125 validate : capabilityValidatorStub ,
@@ -137,6 +142,7 @@ describe("runs", () => {
137142 sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
138143 sinon . assert . calledOnce ( setLocalStub ) ;
139144 sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
145+ sinon . assert . calledOnce ( deleteResultsStub ) ;
140146 sinon . assert . calledOnceWithExactly (
141147 sendUsageReportStub ,
142148 bsConfig ,
@@ -169,6 +175,7 @@ describe("runs", () => {
169175 deleteZipStub = sandbox . stub ( ) ;
170176 setLocalStub = sandbox . stub ( ) ;
171177 setLocalIdentifierStub = sandbox . stub ( ) ;
178+ deleteResultsStub = sandbox . stub ( ) ;
172179 } ) ;
173180
174181 afterEach ( ( ) => {
@@ -192,7 +199,8 @@ describe("runs", () => {
192199 setUsageReportingFlag : setUsageReportingFlagStub ,
193200 getConfigPath : getConfigPathStub ,
194201 setLocal : setLocalStub ,
195- setLocalIdentifier : setLocalIdentifierStub
202+ setLocalIdentifier : setLocalIdentifierStub ,
203+ deleteResults : deleteResultsStub
196204 } ,
197205 "../helpers/capabilityHelper" : {
198206 validate : capabilityValidatorStub ,
@@ -224,6 +232,7 @@ describe("runs", () => {
224232 sinon . assert . calledOnce ( archiverStub ) ;
225233 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
226234 sinon . assert . calledOnce ( deleteZipStub ) ;
235+ sinon . assert . calledOnce ( deleteResultsStub ) ;
227236 sinon . assert . calledOnceWithExactly (
228237 sendUsageReportStub ,
229238 bsConfig ,
@@ -257,6 +266,7 @@ describe("runs", () => {
257266 deleteZipStub = sandbox . stub ( ) ;
258267 setLocalStub = sandbox . stub ( ) ;
259268 setLocalIdentifierStub = sandbox . stub ( ) ;
269+ deleteResultsStub = sandbox . stub ( ) ;
260270 } ) ;
261271
262272 afterEach ( ( ) => {
@@ -280,7 +290,8 @@ describe("runs", () => {
280290 setUsageReportingFlag : setUsageReportingFlagStub ,
281291 getConfigPath : getConfigPathStub ,
282292 setLocal : setLocalStub ,
283- setLocalIdentifier : setLocalIdentifierStub
293+ setLocalIdentifier : setLocalIdentifierStub ,
294+ deleteResults : deleteResultsStub
284295 } ,
285296 "../helpers/capabilityHelper" : {
286297 validate : capabilityValidatorStub ,
@@ -316,7 +327,7 @@ describe("runs", () => {
316327 sinon . assert . calledOnce ( archiverStub ) ;
317328 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
318329 sinon . assert . calledOnce ( zipUploadStub ) ;
319-
330+ sinon . assert . calledOnce ( deleteResultsStub ) ;
320331 sinon . assert . calledOnceWithExactly (
321332 sendUsageReportStub ,
322333 bsConfig ,
@@ -354,6 +365,7 @@ describe("runs", () => {
354365 deleteZipStub = sandbox . stub ( ) ;
355366 setLocalStub = sandbox . stub ( ) ;
356367 setLocalIdentifierStub = sandbox . stub ( ) ;
368+ deleteResultsStub = sandbox . stub ( ) ;
357369 } ) ;
358370
359371 afterEach ( ( ) => {
@@ -377,7 +389,8 @@ describe("runs", () => {
377389 setUsageReportingFlag : setUsageReportingFlagStub ,
378390 getConfigPath : getConfigPathStub ,
379391 setLocal : setLocalStub ,
380- setLocalIdentifier : setLocalIdentifierStub
392+ setLocalIdentifier : setLocalIdentifierStub ,
393+ deleteResults : deleteResultsStub
381394 } ,
382395 "../helpers/capabilityHelper" : {
383396 validate : capabilityValidatorStub ,
@@ -422,6 +435,7 @@ describe("runs", () => {
422435 sinon . assert . calledOnce ( createBuildStub ) ;
423436
424437 sinon . assert . calledOnce ( sendUsageReportStub ) ;
438+ sinon . assert . calledOnce ( deleteResultsStub ) ;
425439
426440 sinon . assert . calledOnceWithExactly (
427441 sendUsageReportStub ,
@@ -460,6 +474,8 @@ describe("runs", () => {
460474 zipUploadStub = sandbox . stub ( ) ;
461475 createBuildStub = sandbox . stub ( ) ;
462476 deleteZipStub = sandbox . stub ( ) ;
477+ exportResultsStub = sandbox . stub ( ) ;
478+ deleteResultsStub = sandbox . stub ( ) ;
463479 isUndefinedStub = sandbox . stub ( ) ;
464480 setLocalStub = sandbox . stub ( ) ;
465481 setLocalIdentifierStub = sandbox . stub ( ) ;
@@ -486,9 +502,11 @@ describe("runs", () => {
486502 setUsageReportingFlag : setUsageReportingFlagStub ,
487503 setParallels : setParallelsStub ,
488504 getConfigPath : getConfigPathStub ,
489- isUndefined : isUndefinedStub ,
490505 setLocal : setLocalStub ,
491- setLocalIdentifier : setLocalIdentifierStub
506+ setLocalIdentifier : setLocalIdentifierStub ,
507+ exportResults : exportResultsStub ,
508+ deleteResults : deleteResultsStub ,
509+ isUndefined : isUndefinedStub
492510 } ,
493511 "../helpers/capabilityHelper" : {
494512 validate : capabilityValidatorStub ,
@@ -534,7 +552,8 @@ describe("runs", () => {
534552 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
535553 sinon . assert . calledOnce ( zipUploadStub ) ;
536554 sinon . assert . calledOnce ( createBuildStub ) ;
537-
555+ sinon . assert . calledOnce ( exportResultsStub ) ;
556+ sinon . assert . calledOnce ( deleteResultsStub ) ;
538557 sinon . assert . calledOnceWithExactly (
539558 sendUsageReportStub ,
540559 bsConfig ,
0 commit comments