Fix example test and test_fetcher for examples (#16478)

This commit is contained in:
Sylvain Gugger
2022-03-29 12:21:19 -04:00
committed by GitHub
parent 86cff21cf6
commit b62ac4d240
2 changed files with 4 additions and 4 deletions

View File

@@ -465,9 +465,9 @@ def infer_tests_to_run(output_file, diff_with_last_commit=False, filters=None):
test_files_to_run.append(f)
# Example files are tested separately
elif f.startswith("examples/pytorch"):
test_files_to_run.append("examples/pytorch/test_examples.py")
test_files_to_run.append("examples/pytorch/test_pytorch_examples.py")
elif f.startswith("examples/flax"):
test_files_to_run.append("examples/flax/test_examples.py")
test_files_to_run.append("examples/flax/test_flax_examples.py")
else:
new_tests = module_to_test_file(f)
if new_tests is not None: