Skip to content

Commit

Permalink
twister: cleanup notrun tests with -M
Browse files Browse the repository at this point in the history
Cleanup notrun tests with the -M option. This is used in the weekly
build and fails because devices will run out of space.

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif authored and dkalowsk committed Oct 28, 2024
1 parent 3810fd3 commit b417524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/pylib/twister/twisterlib/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,8 @@ def process(self, pipeline, done, message, lock, results):
if self.options.prep_artifacts_for_testing:
next_op = 'cleanup'
additionals = {"mode": "device"}
elif self.options.runtime_artifact_cleanup == "pass" and self.instance.status == TwisterStatus.PASS:
elif self.options.runtime_artifact_cleanup == "pass" and \
self.instance.status in [TwisterStatus.PASS, TwisterStatus.NOTRUN]:
next_op = 'cleanup'
additionals = {"mode": "passed"}
elif self.options.runtime_artifact_cleanup == "all":
Expand Down

0 comments on commit b417524

Please sign in to comment.