Skip to content

Commit 8096d10

Browse files
committed
Do code coverage testing on analysis (using stored device data)
1 parent b0e1d96 commit 8096d10

5 files changed

Lines changed: 384 additions & 1 deletion

File tree

meshtastic/analysis/__main__.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ def create_argparser() -> argparse.ArgumentParser:
125125
"--slog",
126126
help="Specify the structured-logs directory (defaults to latest log directory)",
127127
)
128+
group.add_argument(
129+
"--no-server",
130+
action="store_true",
131+
help="Exit immediately, without running the visualization web server",
132+
)
133+
128134
return parser
129135

130136

@@ -190,7 +196,10 @@ def main():
190196
port = 8051
191197
logging.info(f"Running Dash visualization of {args.slog} (publicly accessible)")
192198

193-
app.run_server(debug=True, host="0.0.0.0", port=port)
199+
if not args.no_server:
200+
app.run_server(debug=True, host="0.0.0.0", port=port)
201+
else:
202+
logging.info("Exiting without running visualization server")
194203

195204

196205
if __name__ == "__main__":
21.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)