@@ -418,7 +418,7 @@ def check_cancelled(self) -> bool:
418418 return False
419419
420420 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 ):
422422 """Build and kickoff all of the test sets in the series.
423423
424424 :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,
471471
472472 try :
473473 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 )
475475 except TestSetError as err :
476476 self .status .set (SERIES_STATES .ERROR ,
477477 "Error running test set {}. See the series log "
@@ -506,15 +506,16 @@ def run(self, build_only: bool = False, rebuild: bool = False,
506506 # Completion will be set when looked for.
507507
508508
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 ):
510511 """Run all requested tests in the given test set."""
511512
512513 # Track which builds we've already marked as deprecated, when doing rebuilds.
513514 deprecated_builds = set ()
514515 failed_builds = dict ()
515516 tests_running = 0
516517
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 ):
518519
519520 # Add all the tests we created to this test set.
520521 self ._add_tests (test_batch , test_set .iter_name )
0 commit comments