From 173e73fa1e8b9602e6c92385da9f97fe01d32e79 Mon Sep 17 00:00:00 2001 From: alisonshao <54658187+alisonshao@users.noreply.github.com> Date: Mon, 24 Nov 2025 19:33:46 -0800 Subject: [PATCH] Fix nightly test job to fail when any test fails (#13871) --- test/run_suite_nightly.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/run_suite_nightly.py b/test/run_suite_nightly.py index 43cee7c58..d978953e7 100644 --- a/test/run_suite_nightly.py +++ b/test/run_suite_nightly.py @@ -1,5 +1,6 @@ import argparse import os +import sys from pathlib import Path from sglang.test.ci.ci_utils import TestFile, run_unittest_files @@ -75,11 +76,12 @@ def main(): print(f"Running {len(files)} tests from suite: {args.suite}") print(f"Test files: {[f.name for f in files]}") - run_unittest_files( + exit_code = run_unittest_files( files, timeout_per_file=args.timeout_per_file, continue_on_error=args.continue_on_error, ) + sys.exit(exit_code) if __name__ == "__main__":