Preserve package adapter JSON stream and accept serial CRCRLF diagnostics

This commit is contained in:
Pavel Isaev 2026-11-09 01:58:35 +03:00
parent 51d367d226
commit 9f4ed077c4

View file

@ -116,7 +116,7 @@ journalctl -u archipelagod.service -n 80 --no-pager
child.expect(r"coretest@.*[\$] ", timeout=30)
child.sendline("sudo /bin/bash -c " + shlex.quote(diagnostic) +
"; printf '\\n__ARCHIPELAGO_DIAGNOSTICS_DONE__\\n'")
child.expect(r"\r?\n__ARCHIPELAGO_DIAGNOSTICS_DONE__\r?\n", timeout=120)
child.expect(r"\r*\n__ARCHIPELAGO_DIAGNOSTICS_DONE__\r*\n", timeout=120)
except (pexpect.TIMEOUT, pexpect.EOF) as diagnostic_error:
event("diagnostics-incomplete", error=str(diagnostic_error))
raise RuntimeError(f"Guest command failed ({code}): {text}")