@@ -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 } ) ;
9295 getErrorCodeFromMsgStub = sandbox . stub ( ) . returns ( "random-error-code" ) ;
9396 capabilityValidatorStub = sandbox . stub ( ) ;
97+ deleteResultsStub = sandbox . stub ( ) ;
9498 } ) ;
9599
96100 afterEach ( ( ) => {
@@ -114,7 +118,8 @@ describe("runs", () => {
114118 setBuildName : setBuildNameStub ,
115119 setUserSpecs : setUserSpecsStub ,
116120 setTestEnvs : setTestEnvsStub ,
117- getConfigPath : getConfigPathStub
121+ getConfigPath : getConfigPathStub ,
122+ deleteResults : deleteResultsStub
118123 } ,
119124 "../helpers/capabilityHelper" : {
120125 validate : capabilityValidatorStub ,
@@ -135,6 +140,7 @@ describe("runs", () => {
135140 sinon . assert . calledOnce ( capabilityValidatorStub ) ;
136141 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
137142 sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
143+ sinon . assert . calledOnce ( deleteResultsStub ) ;
138144 sinon . assert . calledOnceWithExactly (
139145 sendUsageReportStub ,
140146 bsConfig ,
@@ -167,6 +173,7 @@ describe("runs", () => {
167173 capabilityValidatorStub = sandbox . stub ( ) ;
168174 archiverStub = sandbox . stub ( ) ;
169175 deleteZipStub = sandbox . stub ( ) ;
176+ deleteResultsStub = sandbox . stub ( ) ;
170177 } ) ;
171178
172179 afterEach ( ( ) => {
@@ -190,7 +197,8 @@ describe("runs", () => {
190197 setUserSpecs : setUserSpecsStub ,
191198 setTestEnvs : setTestEnvsStub ,
192199 setUsageReportingFlag : setUsageReportingFlagStub ,
193- getConfigPath : getConfigPathStub
200+ getConfigPath : getConfigPathStub ,
201+ deleteResults : deleteResultsStub
194202 } ,
195203 "../helpers/capabilityHelper" : {
196204 validate : capabilityValidatorStub ,
@@ -220,6 +228,7 @@ describe("runs", () => {
220228 sinon . assert . calledOnce ( archiverStub ) ;
221229 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
222230 sinon . assert . calledOnce ( deleteZipStub ) ;
231+ sinon . assert . calledOnce ( deleteResultsStub ) ;
223232 sinon . assert . calledOnceWithExactly (
224233 sendUsageReportStub ,
225234 bsConfig ,
@@ -253,6 +262,7 @@ describe("runs", () => {
253262 archiverStub = sandbox . stub ( ) ;
254263 zipUploadStub = sandbox . stub ( ) ;
255264 deleteZipStub = sandbox . stub ( ) ;
265+ deleteResultsStub = sandbox . stub ( ) ;
256266 } ) ;
257267
258268 afterEach ( ( ) => {
@@ -276,7 +286,8 @@ describe("runs", () => {
276286 setUserSpecs : setUserSpecsStub ,
277287 setTestEnvs : setTestEnvsStub ,
278288 setUsageReportingFlag : setUsageReportingFlagStub ,
279- getConfigPath : getConfigPathStub
289+ getConfigPath : getConfigPathStub ,
290+ deleteResults : deleteResultsStub
280291 } ,
281292 "../helpers/capabilityHelper" : {
282293 validate : capabilityValidatorStub ,
@@ -310,7 +321,7 @@ describe("runs", () => {
310321 sinon . assert . calledOnce ( archiverStub ) ;
311322 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
312323 sinon . assert . calledOnce ( zipUploadStub ) ;
313-
324+ sinon . assert . calledOnce ( deleteResultsStub ) ;
314325 sinon . assert . calledOnceWithExactly (
315326 sendUsageReportStub ,
316327 bsConfig ,
@@ -348,6 +359,7 @@ describe("runs", () => {
348359 zipUploadStub = sandbox . stub ( ) ;
349360 createBuildStub = sandbox . stub ( ) ;
350361 deleteZipStub = sandbox . stub ( ) ;
362+ deleteResultsStub = sandbox . stub ( ) ;
351363 } ) ;
352364
353365 afterEach ( ( ) => {
@@ -371,7 +383,8 @@ describe("runs", () => {
371383 setUserSpecs : setUserSpecsStub ,
372384 setTestEnvs : setTestEnvsStub ,
373385 setUsageReportingFlag : setUsageReportingFlagStub ,
374- getConfigPath : getConfigPathStub
386+ getConfigPath : getConfigPathStub ,
387+ deleteResults : deleteResultsStub
375388 } ,
376389 "../helpers/capabilityHelper" : {
377390 validate : capabilityValidatorStub ,
@@ -414,6 +427,7 @@ describe("runs", () => {
414427 sinon . assert . calledOnce ( createBuildStub ) ;
415428
416429 sinon . assert . calledOnce ( sendUsageReportStub ) ;
430+ sinon . assert . calledOnce ( deleteResultsStub ) ;
417431
418432 sinon . assert . calledOnceWithExactly (
419433 sendUsageReportStub ,
@@ -454,6 +468,8 @@ describe("runs", () => {
454468 zipUploadStub = sandbox . stub ( ) ;
455469 createBuildStub = sandbox . stub ( ) ;
456470 deleteZipStub = sandbox . stub ( ) ;
471+ exportResultsStub = sandbox . stub ( ) ;
472+ deleteResultsStub = sandbox . stub ( ) ;
457473 isUndefinedStub = sandbox . stub ( ) ;
458474 } ) ;
459475
@@ -480,6 +496,8 @@ describe("runs", () => {
480496 setUsageReportingFlag : setUsageReportingFlagStub ,
481497 setParallels : setParallelsStub ,
482498 getConfigPath : getConfigPathStub ,
499+ exportResults : exportResultsStub ,
500+ deleteResults : deleteResultsStub ,
483501 isUndefined : isUndefinedStub
484502 } ,
485503 "../helpers/capabilityHelper" : {
@@ -524,7 +542,8 @@ describe("runs", () => {
524542 sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
525543 sinon . assert . calledOnce ( zipUploadStub ) ;
526544 sinon . assert . calledOnce ( createBuildStub ) ;
527-
545+ sinon . assert . calledOnce ( exportResultsStub ) ;
546+ sinon . assert . calledOnce ( deleteResultsStub ) ;
528547 sinon . assert . calledOnceWithExactly (
529548 sendUsageReportStub ,
530549 bsConfig ,
0 commit comments