[CI] Enable failfast (-f) by default in run_suite.py (#21330)

This commit is contained in:
Liangsheng Yin
2026-03-24 17:04:42 -07:00
committed by GitHub
parent 3937a07b17
commit 37420dce0b
4 changed files with 9 additions and 44 deletions
+4 -4
View File
@@ -160,10 +160,12 @@ def run_unittest_files(
)
file_tic = time.perf_counter()
cmd = ["python3", full_path, "-f"]
if capture_output:
# Capture output for retry decision
process = subprocess.Popen(
["python3", full_path],
cmd,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
text=True,
@@ -175,9 +177,7 @@ def run_unittest_files(
output_lines.append(line)
process.wait()
else:
process = subprocess.Popen(
["python3", full_path], stdout=None, stderr=None
)
process = subprocess.Popen(cmd, stdout=None, stderr=None)
process.wait()
elapsed = time.perf_counter() - file_tic