Skip to content

Commit a8d9400

Browse files
committed
Fix rebaseline_tests WRT to git submodules (again)
1 parent ff048be commit a8d9400

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/maint/rebaseline_tests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,17 @@ def main():
8080

8181
subprocess.check_call(['test/runner', '--rebaseline', '--browser=0'] + TESTS, cwd=root_dir)
8282

83-
if not run(['git', 'status', '-uno', '--porcelain', 'test']):
84-
print('test expectations are up-to-date')
85-
return 0
86-
8783
output = run(['git', 'status', '-uno', '--porcelain'])
8884
filenames = []
8985
for line in output.splitlines():
9086
filename = line.strip().rsplit(' ', 1)[1]
9187
if filename.startswith('test') and os.path.isfile(filename):
9288
filenames.append(filename)
9389

90+
if not filenames:
91+
print('test expectations are up-to-date')
92+
return 0
93+
9494
if args.check_only:
9595
message = f'''Test expectations are out-of-date
9696

0 commit comments

Comments
 (0)