Skip to content

Commit

Permalink
(fix)(scripts): fixed the failing relevant_tests workflow due to a …
Browse files Browse the repository at this point in the history
…bug in the `run_tests_from_diff.py` file. (#28776)
  • Loading branch information
YushaArif99 authored Jun 24, 2024
1 parent d1d5305 commit 855c25f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/run_tests_from_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@
test_paths = []

for file_path in set(modified_files):
suffix = file_path.rsplit("/", 1)[1].replace(".py", "")

try:
suffix = file_path.rsplit("/", 1)[1].replace(".py", "")
except IndexError:
continue
if suffix in exclude:
continue

Expand Down

0 comments on commit 855c25f

Please sign in to comment.