Unverified Commit 454957c9 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Fix for #25437 (#25454)



* fix

* fix

* fix

* fix

* fix

* fix

---------
Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent 55db70c6
...@@ -735,6 +735,9 @@ def infer_tests_to_run(output_file, diff_with_last_commit=False, filter_models=T ...@@ -735,6 +735,9 @@ def infer_tests_to_run(output_file, diff_with_last_commit=False, filter_models=T
print(f"\n### EXAMPLES TEST TO RUN ###\n{_print_list(examples_tests_to_run)}") print(f"\n### EXAMPLES TEST TO RUN ###\n{_print_list(examples_tests_to_run)}")
if len(examples_tests_to_run) > 0: if len(examples_tests_to_run) > 0:
# We use `all` in the case `commit_flags["test_all"]` as well as in `create_circleci_config.py` for processing
if examples_tests_to_run == ["examples"]:
examples_tests_to_run = ["all"]
example_file = Path(output_file).parent / "examples_test_list.txt" example_file = Path(output_file).parent / "examples_test_list.txt"
with open(example_file, "w", encoding="utf-8") as f: with open(example_file, "w", encoding="utf-8") as f:
f.write(" ".join(examples_tests_to_run)) f.write(" ".join(examples_tests_to_run))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment