From 807c58221f99286206814d1e65d23b2c19128344 Mon Sep 17 00:00:00 2001 From: Joao Gante Date: Fri, 30 Aug 2024 18:43:43 +0000 Subject: [PATCH] fix test fetcher --- utils/tests_fetcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/tests_fetcher.py b/utils/tests_fetcher.py index e926a96d9604c7..fc85b03f8b7cc6 100644 --- a/utils/tests_fetcher.py +++ b/utils/tests_fetcher.py @@ -1054,7 +1054,7 @@ def infer_tests_to_run( # Then we grab the corresponding test files. test_map = create_module_to_test_map(reverse_map=reverse_map, filter_models=filter_models) for f in modified_files + impacted_files: - if f in test_map: + if f in test_map and test_map[f] is not None: test_files_to_run.extend(test_map[f]) test_files_to_run = sorted(set(test_files_to_run)) # Remove repo utils tests