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 <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2024-10-28 15:17:22 -04:00 committed by Dan Kalowsky
commit b417524b66

View file

@ -798,7 +798,8 @@ class ProjectBuilder(FilterBuilder):
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":