Commit 209f696f authored by Muyang Li's avatar Muyang Li
Browse files

chore: fix the test paths

parent 577bd8ea
...@@ -3,7 +3,7 @@ from pathlib import Path ...@@ -3,7 +3,7 @@ from pathlib import Path
def run_all_tests(): def run_all_tests():
test_dir = Path(__file__).parent.parent / "tests" test_dir = Path("tests")
test_files = [] test_files = []
for file_path in test_dir.rglob("test_*.py"): for file_path in test_dir.rglob("test_*.py"):
# Ignore tests/flux/test_flux_examples.py # Ignore tests/flux/test_flux_examples.py
...@@ -27,6 +27,8 @@ def run_all_tests(): ...@@ -27,6 +27,8 @@ def run_all_tests():
failed_tests.append(test_file) failed_tests.append(test_file)
else: else:
print(f"Test passed: {test_file}") print(f"Test passed: {test_file}")
if len(failed_tests) > 3:
break
if failed_tests: if failed_tests:
print("Some tests failed.") print("Some tests failed.")
......
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