From 51d587b8b8a81a9ff71409db4c55473dc9c6090e Mon Sep 17 00:00:00 2001 From: Devi Manoharan Date: Thu, 30 Apr 2026 09:14:19 -0400 Subject: [PATCH] fix: set ok=False when TestAbortAll is raised in run_suite_class Set ok to False when TestAbortAll is caught to indicate failure. --- mobly/suite_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobly/suite_runner.py b/mobly/suite_runner.py index 166627fe..2a7ccaf6 100644 --- a/mobly/suite_runner.py +++ b/mobly/suite_runner.py @@ -368,7 +368,7 @@ def run_suite_class(argv=None): ok = runner.results.is_all_pass print(ok) except signals.TestAbortAll: - pass + ok = False finally: suite.teardown_suite() suite_record.suite_end()