Fix test_fetcher when setup is updated (#13566)
* Fix test_fetcher when setup is updated * Remove example
This commit is contained in:
@@ -416,6 +416,10 @@ def infer_tests_to_run(output_file, diff_with_last_commit=False, filters=None):
|
|||||||
impacted_files = sorted(list(set(impacted_files)))
|
impacted_files = sorted(list(set(impacted_files)))
|
||||||
print(f"\n### IMPACTED FILES ###\n{_print_list(impacted_files)}")
|
print(f"\n### IMPACTED FILES ###\n{_print_list(impacted_files)}")
|
||||||
|
|
||||||
|
# Grab the corresponding test files:
|
||||||
|
if "setup.py" in impacted_files:
|
||||||
|
test_files_to_run = ["tests"]
|
||||||
|
else:
|
||||||
# Grab the corresponding test files:
|
# Grab the corresponding test files:
|
||||||
test_files_to_run = []
|
test_files_to_run = []
|
||||||
for f in impacted_files:
|
for f in impacted_files:
|
||||||
|
|||||||
Reference in New Issue
Block a user