Merge pull request #281 from dirwin31/Starport-Log-Refusal-Bytes

Add Logging for Screen Failure Response
This commit is contained in:
Dom
2026-11-06 13:20:23 -06:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
@@ -471,7 +471,7 @@ class WirelessBootstrap:
endpoint = parsed
self._reply_accepted = True
else:
self.log("bootstrap_start_refused", status=status, endpoint=parsed is not None)
self.log("bootstrap_start_refused", status=status, endpoint=parsed is not None, hex=payload.hex())
self.refusals.append(status)
deadline = min(latest_deadline, max(deadline, time.monotonic() + self.stage_timeout)) # a car that answers is not gone
start_request_at = time.monotonic() + self.start_request_delay
@@ -176,7 +176,7 @@ def test_bootstrap_waits_out_a_busy_start_response():
result, joined, _, events = run_bootstrap(start_request_delay=0.1, version_first=True, wait_for_phone_start=True,
answer_start=True, busy_replies=1, busy_follow_up=True)
assert result.endpoint.port == 5288 and joined[0].ssid == "HondaAA"
assert ("bootstrap_start_refused", {"status": -1, "endpoint": False}) in events
assert ("bootstrap_start_refused", {"status": -1, "endpoint": False, "hex": "18ffffffffffffffffff01"}) in events
def test_bootstrap_asks_again_after_a_busy_start_response():