diff --git a/scripts/ci/select_unit_tests.py b/scripts/ci/select_unit_tests.py index 58eec6723..faac72e8e 100644 --- a/scripts/ci/select_unit_tests.py +++ b/scripts/ci/select_unit_tests.py @@ -170,9 +170,7 @@ def select_tests(changed_files): if matches: for m in matches: selected.add(m) - print( - f"[map] {f} -> {len(matches)} 个测试: {[Path(m).name for m in matches]}" - ) + print(f"[map] {f} -> {len(matches)} 个测试: {[Path(m).name for m in matches]}") else: print(f"[nomatch] {f} (module: {module_name}) 未找到匹配的测试文件") @@ -215,9 +213,7 @@ def main(): if gh_output: with open(gh_output, "a") as f: f.write(f"test_count={len(selected)}\n") - f.write( - "mode=" + ("incremental" if "incremental" in mode else "full") + "\n" - ) + f.write("mode=" + ("incremental" if "incremental" in mode else "full") + "\n") # 退出码:0=增量, 1=全量(供CI判断) sys.exit(0 if "incremental" in mode else 1)