mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-14 05:53:47 -06:00
fix: wait for Confirm by its title in the tap test
The game-data tap test waited on the bare RetroBIOS: title, which the screen before Confirm already showed, then pressed Enter only if one settle had drawn Confirm. The runner drew it later and the install never started. It now waits for the Confirm title and presses Enter.
This commit is contained in:
1 parent
50ec6a4474
commit
c963499643
1 file changed
+6
-4
@@ -12367,12 +12367,14 @@ class TapsOnAPtySeeFirst(unittest.TestCase):
|
||||
break
|
||||
term.send("\x1b[A")
|
||||
term.send("\r")
|
||||
screen = term.wait("RetroBIOS:")
|
||||
if "Confirm" in term.settle():
|
||||
term.send("\r")
|
||||
# The changed choices are counted again on Confirm. Waiting on the
|
||||
# bare title matched the screen before it, and a runner that drew
|
||||
# Confirm after one settle never pressed Enter there.
|
||||
term.wait("RetroBIOS: Confirm")
|
||||
term.settle()
|
||||
term.send("\r")
|
||||
term.wait("files installed")
|
||||
self.assertEqual(repo.installed(), ["gba_bios.bin", "mgba/extra.bin"])
|
||||
del screen
|
||||
term.send("q")
|
||||
term.close()
|
||||
|
||||
|
||||
Reference in new issue
Block a user