twister: cleanup: fixed typo preventing runtime cleanup
Fixed runtime cleanup option. A typo in a conditional prevented the cleanup from happened when a test has passed. Fixes #54240 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
f43292a01a
commit
cd26df75b5
|
@ -613,7 +613,7 @@ class ProjectBuilder(FilterBuilder):
|
|||
mode = message.get("mode")
|
||||
if mode == "device":
|
||||
self.cleanup_device_testing_artifacts()
|
||||
elif mode == "pass" or (mode == "all" and self.instance.reason != "Cmake build failure"):
|
||||
elif mode == "passed" or (mode == "all" and self.instance.reason != "Cmake build failure"):
|
||||
self.cleanup_artifacts()
|
||||
|
||||
def determine_testcases(self, results):
|
||||
|
|
Loading…
Reference in a new issue