Changeset 11190 in ntrip for trunk/BNC/tests
- Timestamp:
- Nov 10, 2026, 9:21:30 AM (17 hours ago)
- Location:
- trunk/BNC/tests
- Files:
-
- 3 edited
-
cases/log_structured/expected/PPPQuickStart.jsonl.gz (modified) ( previous)
-
cases/log_structured/expected/PPPQuickStart.logfmt.gz (modified) ( previous)
-
tools/logcheck.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/tests/tools/logcheck.py
r11189 r11190 9 9 'epoch' after 'time', GPS Time without 'Z'), that the records belong line by 10 10 line to the classic logfile ('msg' is the classic text without the "<mp>: " 11 prefix, shortened for events whose fields carry the details, see matches(); 11 prefix and trailing blanks, shortened for events whose fields carry the details, see matches(); 12 12 classic lines without their "yy-mm-dd hh:mm:ss " prefix; the start line is 13 13 skipped, it goes to the file of the current date) and that 'time' (UTC) is the … … 77 77 } 78 78 79 SHORT_MSG = {"ppp_position": "PPP position", "stream_latency": "Latency"} 80 79 81 80 82 def matches(r, line): … … 84 86 mp, msg, ev = r.get("mp"), r.get("msg"), r.get("event") 85 87 if ev in SHORT: 86 return line.startswith(SHORT[ev](r)) 88 return msg == SHORT_MSG[ev] and line.startswith(SHORT[ev](r)) 87 89 if ev == "stream_content" and "message_type" in r: 88 90 size = " (size %d)" % r["size"] if "size" in r else " " 89 return msg == "Received message" and \ 91 return msg == "Received RTCM message" and \ 90 92 line == "%s: Received message type %d%s" % (mp, r["message_type"], size) 91 93 if mp and line.startswith(mp + ": "): 92 94 line = line[len(mp) + 2:] 95 line = line.rstrip(" ") 93 96 if ev.startswith("stream_outage_") or ev.startswith("stream_corrupted_"): 94 97 return line.startswith(msg + " ")
Note:
See TracChangeset
for help on using the changeset viewer.
