Skip to content

Commit

Permalink
Fix tdd script indexerror.
Browse files Browse the repository at this point in the history
No-Issue

Signed-off-by: James Tanner <tanner.jc@gmail.com>
  • Loading branch information
jctanner committed Feb 29, 2024
1 parent 0b946f5 commit 3b5e90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/common/tdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_changed_files(pr_branch, target_branch="master"):
raw = f.read()
filenames = raw.split('\n')
filenames = [x for x in filenames if x.startswith('---') or x.startswith('+++')]
filenames = [x.split(None, 1)[1] for x in filenames]
filenames = [x.split(None, 1)[1] for x in filenames if len(x.split(None, 1)) > 1]
filenames = [x for x in filenames if not x.startswith('/dev/null')]
filenames = [x.lstrip('a/') for x in filenames]
filenames = [x.lstrip('b/') for x in filenames]
Expand Down

0 comments on commit 3b5e90b

Please sign in to comment.