|
70 | 70 | print('ERROR: .cfg file paths duplicated in manifest:\n' + '\n'.join(duplicate_cfg_paths))
|
71 | 71 |
|
72 | 72 | # Check paths in manifest match paths on filesystem
|
73 |
| -if tla_mf_paths < tla_fs_paths: |
| 73 | +if tla_mf_paths != tla_fs_paths: |
74 | 74 | success = False
|
75 |
| - print('ERROR: .tla files not recorded in manifest:\n' + '\n'.join(tla_fs_paths - tla_mf_paths)) |
76 |
| -if tla_fs_paths < tla_mf_paths: |
| 75 | + only_in_manifest = tla_mf_paths - tla_fs_paths |
| 76 | + if any(only_in_manifest): |
| 77 | + print('ERROR: Manifest .tla files not found in specifications dir:\n' + '\n'.join(only_in_manifest)) |
| 78 | + only_on_filesystem = tla_fs_paths - tla_mf_paths |
| 79 | + if any(only_on_filesystem): |
| 80 | + print('ERROR: .tla files not recorded in manifest:\n' + '\n'.join(only_on_filesystem)) |
| 81 | +if cfg_mf_paths != cfg_fs_paths: |
77 | 82 | success = False
|
78 |
| - print('ERROR: Manifest .tla files not found in specifications dir:\n' + '\n'.join(tla_mf_paths - tla_fs_paths)) |
79 |
| -if cfg_mf_paths < cfg_fs_paths: |
80 |
| - success = False |
81 |
| - print('ERROR: .cfg files not recorded in manifest:\n' + '\n'.join(cfg_fs_paths - cfg_mf_paths)) |
82 |
| -if cfg_fs_paths < cfg_mf_paths: |
83 |
| - success = False |
84 |
| - print('ERROR: Manifest .cfg files not found in specifications dir:\n' + '\n'.join(cfg_mf_paths - cfg_fs_paths)) |
| 83 | + only_in_manifest = cfg_mf_paths - cfg_fs_paths |
| 84 | + if any(only_in_manifest): |
| 85 | + print('ERROR: Manifest .cfg files not found in specifications dir:\n' + '\n'.join(only_in_manifest)) |
| 86 | + only_on_filesystem = cfg_fs_paths - cfg_mf_paths |
| 87 | + if any(only_on_filesystem): |
| 88 | + print('ERROR: .cfg files not recorded in manifest:\n' + '\n'.join(only_on_filesystem)) |
85 | 89 |
|
86 | 90 | if success:
|
87 | 91 | print('SUCCESS: manifest.json concords with files in repo')
|
|
0 commit comments