@@ -418,7 +418,7 @@ def check_cancelled(self) -> bool:
418
418
return False
419
419
420
420
def run (self , build_only : bool = False , rebuild : bool = False ,
421
- local_builds_only : bool = False ):
421
+ local_builds_only : bool = False , purge : bool = True ):
422
422
"""Build and kickoff all of the test sets in the series.
423
423
424
424
:param build_only: Only build the tests, do not run them.
@@ -471,7 +471,7 @@ def run(self, build_only: bool = False, rebuild: bool = False,
471
471
472
472
try :
473
473
self ._run_set (test_set , build_only = build_only ,
474
- rebuild = rebuild , local_builds_only = local_builds_only )
474
+ rebuild = rebuild , local_builds_only = local_builds_only , purge = purge )
475
475
except TestSetError as err :
476
476
self .status .set (SERIES_STATES .ERROR ,
477
477
"Error running test set {}. See the series log "
@@ -506,15 +506,16 @@ def run(self, build_only: bool = False, rebuild: bool = False,
506
506
# Completion will be set when looked for.
507
507
508
508
509
- def _run_set (self , test_set : TestSet , build_only : bool , rebuild : bool , local_builds_only : bool ):
509
+ def _run_set (self , test_set : TestSet , build_only : bool , rebuild : bool , local_builds_only : bool ,
510
+ purge : bool ):
510
511
"""Run all requested tests in the given test set."""
511
512
512
513
# Track which builds we've already marked as deprecated, when doing rebuilds.
513
514
deprecated_builds = set ()
514
515
failed_builds = dict ()
515
516
tests_running = 0
516
517
517
- for test_batch in test_set .make_iter (build_only , rebuild , local_builds_only ):
518
+ for test_batch in test_set .make_iter (build_only , rebuild , local_builds_only , purge ):
518
519
519
520
# Add all the tests we created to this test set.
520
521
self ._add_tests (test_batch , test_set .iter_name )
0 commit comments