Changeset 11069 in ntrip for trunk/BNC/tests/run_tests.py
- Timestamp:
- Oct 5, 2026, 12:35:49 PM (9 days ago)
- File:
-
- 1 edited
-
trunk/BNC/tests/run_tests.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/tests/run_tests.py
r11060 r11069 39 39 tests/run_tests.py run all cases 40 40 tests/run_tests.py ssr_ rinex run cases whose name contains a pattern 41 tests/run_tests.py --update NAME (re)generate the reference outputs 41 tests/run_tests.py --update NAME (re)generate the reference outputs; references of 42 outputs no longer produced are removed 42 43 tests/run_tests.py --list 43 44 """ … … 244 245 pairs.append((os.path.basename(m), m, spec)) 245 246 247 written = set() 246 248 for ref, path, spec in pairs: 247 249 actual = normalise(read_text(path)) … … 249 251 if update: 250 252 write_expected(expfile, actual) 253 written.add(os.path.basename(expfile)) 251 254 continue 252 255 if not os.path.exists(expfile): … … 272 275 273 276 if update and res.status == "PASS": 277 # references of outputs no longer produced (e.g. a new date in the 278 # file name after a new raw capture) are removed 279 for e in glob.glob(os.path.join(expdir, "*.gz")): 280 if os.path.basename(e) not in written: 281 os.remove(e) 274 282 res.status = "UPDATED" 275 283 return res
Note:
See TracChangeset
for help on using the changeset viewer.
