@@ -27,6 +27,7 @@ describe("runs", () => {
27
27
return "end" ;
28
28
} ) ;
29
29
getErrorCodeFromErrStub = sandbox . stub ( ) . returns ( "random-error-code" ) ;
30
+ deleteResultsStub = sandbox . stub ( ) ;
30
31
} ) ;
31
32
32
33
afterEach ( ( ) => {
@@ -45,7 +46,8 @@ describe("runs", () => {
45
46
getErrorCodeFromErr : getErrorCodeFromErrStub ,
46
47
sendUsageReport : sendUsageReportStub ,
47
48
setUsageReportingFlag : setUsageReportingFlagStub ,
48
- getConfigPath : getConfigPathStub
49
+ getConfigPath : getConfigPathStub ,
50
+ deleteResults : deleteResultsStub
49
51
} ,
50
52
} ) ;
51
53
@@ -61,6 +63,7 @@ describe("runs", () => {
61
63
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
62
64
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
63
65
sinon . assert . calledOnce ( getErrorCodeFromErrStub ) ;
66
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
64
67
sinon . assert . calledOnceWithExactly (
65
68
sendUsageReportStub ,
66
69
null ,
@@ -91,6 +94,7 @@ describe("runs", () => {
91
94
capabilityValidatorStub = sandbox . stub ( ) ;
92
95
setLocalStub = sandbox . stub ( ) ;
93
96
setLocalIdentifierStub = sandbox . stub ( ) ;
97
+ deleteResultsStub = sandbox . stub ( ) ;
94
98
} ) ;
95
99
96
100
afterEach ( ( ) => {
@@ -114,7 +118,8 @@ describe("runs", () => {
114
118
setBuildName : setBuildNameStub ,
115
119
getConfigPath : getConfigPathStub ,
116
120
setLocal : setLocalStub ,
117
- setLocalIdentifier : setLocalIdentifierStub
121
+ setLocalIdentifier : setLocalIdentifierStub ,
122
+ deleteResults : deleteResultsStub
118
123
} ,
119
124
"../helpers/capabilityHelper" : {
120
125
validate : capabilityValidatorStub ,
@@ -137,6 +142,7 @@ describe("runs", () => {
137
142
sinon . assert . calledOnce ( getErrorCodeFromMsgStub ) ;
138
143
sinon . assert . calledOnce ( setLocalStub ) ;
139
144
sinon . assert . calledOnce ( setLocalIdentifierStub ) ;
145
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
140
146
sinon . assert . calledOnceWithExactly (
141
147
sendUsageReportStub ,
142
148
bsConfig ,
@@ -169,6 +175,7 @@ describe("runs", () => {
169
175
deleteZipStub = sandbox . stub ( ) ;
170
176
setLocalStub = sandbox . stub ( ) ;
171
177
setLocalIdentifierStub = sandbox . stub ( ) ;
178
+ deleteResultsStub = sandbox . stub ( ) ;
172
179
} ) ;
173
180
174
181
afterEach ( ( ) => {
@@ -192,7 +199,8 @@ describe("runs", () => {
192
199
setUsageReportingFlag : setUsageReportingFlagStub ,
193
200
getConfigPath : getConfigPathStub ,
194
201
setLocal : setLocalStub ,
195
- setLocalIdentifier : setLocalIdentifierStub
202
+ setLocalIdentifier : setLocalIdentifierStub ,
203
+ deleteResults : deleteResultsStub
196
204
} ,
197
205
"../helpers/capabilityHelper" : {
198
206
validate : capabilityValidatorStub ,
@@ -224,6 +232,7 @@ describe("runs", () => {
224
232
sinon . assert . calledOnce ( archiverStub ) ;
225
233
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
226
234
sinon . assert . calledOnce ( deleteZipStub ) ;
235
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
227
236
sinon . assert . calledOnceWithExactly (
228
237
sendUsageReportStub ,
229
238
bsConfig ,
@@ -257,6 +266,7 @@ describe("runs", () => {
257
266
deleteZipStub = sandbox . stub ( ) ;
258
267
setLocalStub = sandbox . stub ( ) ;
259
268
setLocalIdentifierStub = sandbox . stub ( ) ;
269
+ deleteResultsStub = sandbox . stub ( ) ;
260
270
} ) ;
261
271
262
272
afterEach ( ( ) => {
@@ -280,7 +290,8 @@ describe("runs", () => {
280
290
setUsageReportingFlag : setUsageReportingFlagStub ,
281
291
getConfigPath : getConfigPathStub ,
282
292
setLocal : setLocalStub ,
283
- setLocalIdentifier : setLocalIdentifierStub
293
+ setLocalIdentifier : setLocalIdentifierStub ,
294
+ deleteResults : deleteResultsStub
284
295
} ,
285
296
"../helpers/capabilityHelper" : {
286
297
validate : capabilityValidatorStub ,
@@ -316,7 +327,7 @@ describe("runs", () => {
316
327
sinon . assert . calledOnce ( archiverStub ) ;
317
328
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
318
329
sinon . assert . calledOnce ( zipUploadStub ) ;
319
-
330
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
320
331
sinon . assert . calledOnceWithExactly (
321
332
sendUsageReportStub ,
322
333
bsConfig ,
@@ -354,6 +365,7 @@ describe("runs", () => {
354
365
deleteZipStub = sandbox . stub ( ) ;
355
366
setLocalStub = sandbox . stub ( ) ;
356
367
setLocalIdentifierStub = sandbox . stub ( ) ;
368
+ deleteResultsStub = sandbox . stub ( ) ;
357
369
} ) ;
358
370
359
371
afterEach ( ( ) => {
@@ -377,7 +389,8 @@ describe("runs", () => {
377
389
setUsageReportingFlag : setUsageReportingFlagStub ,
378
390
getConfigPath : getConfigPathStub ,
379
391
setLocal : setLocalStub ,
380
- setLocalIdentifier : setLocalIdentifierStub
392
+ setLocalIdentifier : setLocalIdentifierStub ,
393
+ deleteResults : deleteResultsStub
381
394
} ,
382
395
"../helpers/capabilityHelper" : {
383
396
validate : capabilityValidatorStub ,
@@ -422,6 +435,7 @@ describe("runs", () => {
422
435
sinon . assert . calledOnce ( createBuildStub ) ;
423
436
424
437
sinon . assert . calledOnce ( sendUsageReportStub ) ;
438
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
425
439
426
440
sinon . assert . calledOnceWithExactly (
427
441
sendUsageReportStub ,
@@ -460,6 +474,8 @@ describe("runs", () => {
460
474
zipUploadStub = sandbox . stub ( ) ;
461
475
createBuildStub = sandbox . stub ( ) ;
462
476
deleteZipStub = sandbox . stub ( ) ;
477
+ exportResultsStub = sandbox . stub ( ) ;
478
+ deleteResultsStub = sandbox . stub ( ) ;
463
479
isUndefinedStub = sandbox . stub ( ) ;
464
480
setLocalStub = sandbox . stub ( ) ;
465
481
setLocalIdentifierStub = sandbox . stub ( ) ;
@@ -486,9 +502,11 @@ describe("runs", () => {
486
502
setUsageReportingFlag : setUsageReportingFlagStub ,
487
503
setParallels : setParallelsStub ,
488
504
getConfigPath : getConfigPathStub ,
489
- isUndefined : isUndefinedStub ,
490
505
setLocal : setLocalStub ,
491
- setLocalIdentifier : setLocalIdentifierStub
506
+ setLocalIdentifier : setLocalIdentifierStub ,
507
+ exportResults : exportResultsStub ,
508
+ deleteResults : deleteResultsStub ,
509
+ isUndefined : isUndefinedStub
492
510
} ,
493
511
"../helpers/capabilityHelper" : {
494
512
validate : capabilityValidatorStub ,
@@ -534,7 +552,8 @@ describe("runs", () => {
534
552
sinon . assert . calledOnce ( setUsageReportingFlagStub ) ;
535
553
sinon . assert . calledOnce ( zipUploadStub ) ;
536
554
sinon . assert . calledOnce ( createBuildStub ) ;
537
-
555
+ sinon . assert . calledOnce ( exportResultsStub ) ;
556
+ sinon . assert . calledOnce ( deleteResultsStub ) ;
538
557
sinon . assert . calledOnceWithExactly (
539
558
sendUsageReportStub ,
540
559
bsConfig ,
0 commit comments