lldb: fix log output when exit

This commit is contained in:
Li Jie
2024-09-23 21:14:26 +08:00
parent c6bb4a23ae
commit 3fcbcca8e4

View File

@@ -252,7 +252,7 @@ def run_tests(executable_path: str, source_files: List[str], verbose: bool, inte
print_test_results(results) print_test_results(results)
if results.total != results.passed: if results.total != results.passed:
os._exit(1) sys.exit(1)
def execute_test_case(debugger: LLDBDebugger, test_case: TestCase, all_variable_names: Set[str]) -> CaseResult: def execute_test_case(debugger: LLDBDebugger, test_case: TestCase, all_variable_names: Set[str]) -> CaseResult: