pexpects: More timeouts

This commit is contained in:
Fabian Boehm 2024-04-23 20:38:09 +02:00
parent 7ea17bf621
commit 16eeba8f65
2 changed files with 5 additions and 2 deletions

View File

@ -21,6 +21,9 @@ sp.expect_str("reader: Disabling mouse tracking")
sp.send("\x1b[TABCDEF")
sp.expect_str("reader: Disabling mouse tracking")
# sleep to catch up under ASAN
sp.sleep(0.5)
# Extended SGR sequences.
sp.send("\x1b[<1;2;3M")
sp.expect_str("reader: Disabling mouse tracking")

View File

@ -47,8 +47,8 @@ expect_prompt()
sendline("function postexec --on-event fish_postexec; echo fish_postexec spotted; end")
expect_prompt()
sendline("read")
expect_re(r"\r\n?read> (\x1b\[\?1004h)?$")
sleep(0.200)
expect_re(r"\r\n?read> (\x1b\[\?1004h)?$")
os.kill(sp.spawn.pid, signal.SIGINT)
expect_str("fish_postexec spotted")
expect_prompt()
@ -59,7 +59,7 @@ sendline(
)
expect_prompt()
sendline("sleep 5")
sleep(0.200)
sleep(0.300)
subprocess.call(["pkill", "-INT", "-P", str(sp.spawn.pid), "sleep"])
expect_str("fish_kill_signal 2")
expect_prompt()