Skip to content

Commit b44172c

Browse files
authored
Fix rebaseline_tests.py script WRT to git submodules. NFC (#23570)
See #23569
1 parent f7475a8 commit b44172c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- name: Checkout repo
3434
uses: actions/checkout@v4
3535
with:
36+
submodules: true
3637
fetch-depth: 0 # We want access to other branches, specifically `main`
3738
- name: pip install
3839
run: |

tools/maint/rebaseline_tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ def main():
112112
'''
113113

114114
for file in filenames:
115-
message += process_changed_file(file)
115+
if os.path.isfile(file):
116+
message += process_changed_file(file)
116117

117118
message += f'\nAverage change: {statistics.mean(all_deltas):+.2f}% ({min(all_deltas):+.2f}% - {max(all_deltas):+.2f}%)\n'
118119

0 commit comments

Comments
 (0)