Skip to content

Commit b417524

Browse files
nashifdkalowsk
authored andcommitted
twister: cleanup notrun tests with -M
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]>
1 parent 3810fd3 commit b417524

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/pylib/twister/twisterlib/runner.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,8 @@ def process(self, pipeline, done, message, lock, results):
798798
if self.options.prep_artifacts_for_testing:
799799
next_op = 'cleanup'
800800
additionals = {"mode": "device"}
801-
elif self.options.runtime_artifact_cleanup == "pass" and self.instance.status == TwisterStatus.PASS:
801+
elif self.options.runtime_artifact_cleanup == "pass" and \
802+
self.instance.status in [TwisterStatus.PASS, TwisterStatus.NOTRUN]:
802803
next_op = 'cleanup'
803804
additionals = {"mode": "passed"}
804805
elif self.options.runtime_artifact_cleanup == "all":

0 commit comments

Comments
 (0)