Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] refactor data flow and engine library #1054

Merged
merged 26 commits into from
Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: update ut for multi_loops
  • Loading branch information
zengyh1900 committed Aug 30, 2022
commit 804f15c64b5a0a96f0686b0892ef54f1d2e36f5a
11 changes: 9 additions & 2 deletions .dev_scripts/update_ut.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def update_ut():

folders = [f for f in os.listdir(args.src) if osp.isdir(f'mmedit/{f}')]
target_ut = []
missing_ut = []

for subf in folders:
if subf == '.mim' or subf == '__pycache__':
Expand All @@ -36,8 +37,10 @@ def update_ut():

dst_path = osp.join(dirname, basename)
target_ut.append(dst_path)
fp = open(dst_path, 'a')
fp.close()
if not osp.exists(dst_path):
missing_ut.append(dst_path)
fp = open(dst_path, 'a')
fp.close()

existing_ut = glob('tests/test_*/**/*.py', recursive=True)
additional_ut = list(set(existing_ut) - set(target_ut))
Expand All @@ -46,6 +49,10 @@ def update_ut():
print('Additional UT:')
for f in additional_ut:
print(f)
if len(missing_ut) > 0:
print('Missing UT:')
for f in missing_ut:
print(f)


if __name__ == '__main__':
Expand Down
1 change: 1 addition & 0 deletions tests/test_engine/test_runner/test_multi_loops.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Copyright (c) OpenMMLab. All rights reserved.