test(stick): mint_zuse seen to fail -- MINT-ZUSE unknown; its prompt check tightened (#92, 4.2) [skip ci]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GE3SDvQn5EoxdGufk84zz2
This commit is contained in:
Claude
2026-11-08 18:10:20 +00:00
parent 4706ddf39a
commit 1074520ec9
4 changed files with 177 additions and 5 deletions
+6 -4
View File
@@ -555,11 +555,13 @@ elif m == "mint_zuse":
check("MINT-ZUSE: a stick of 600 MiB -- all of it is erased",
wait_for(r"MINT-ZUSE: a stick of 600 MiB -- all of it is erased", 120), near=r"MINT-ZUSE")
check("MINT-ZUSE: type YES to write it", wait_for(r"MINT-ZUSE: type YES to write it", 30), near=r"MINT-ZUSE")
n = count(PROMPT)
type_line("YES")
check("Zuse: real Zuse minted onto the second stick",
wait_for(r"Zuse: real Zuse minted onto the second stick", 300), near=r"MINT-ZUSE|Zuse:")
check("[zuse@Hera] ok> (the real Zuse)", wait_for(PROMPT, 120, n))
minted = wait_for(r"Zuse: real Zuse minted onto the second stick", 300)
check("Zuse: real Zuse minted onto the second stick", minted, near=r"MINT-ZUSE|Zuse:")
t = text()
after = t[t.find("Zuse: real Zuse minted onto the second stick"):] if minted else ""
check("[zuse@Hera] ok> after it (the real Zuse)", minted and (re.search(PROMPT, after) is not None
or wait_for(PROMPT, 120, count(PROMPT))))
n = count(PROMPT)
type_line("3 4 + .")
check("7 ok", wait_for(PROMPT, 60, n) and re.search(r"7\s+ok", text()[-400:]) is not None)