From b417524b663549246c2bbdd42ed3c5227728059a Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 28 Oct 2024 15:17:22 -0400 Subject: [PATCH] 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 --- scripts/pylib/twister/twisterlib/runner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/pylib/twister/twisterlib/runner.py b/scripts/pylib/twister/twisterlib/runner.py index f5e2cabf74dc..4a38eeb284a9 100644 --- a/scripts/pylib/twister/twisterlib/runner.py +++ b/scripts/pylib/twister/twisterlib/runner.py @@ -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":