mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 12:41:08 +08:00
pexpects: More timeouts
This commit is contained in:
parent
7ea17bf621
commit
16eeba8f65
|
@ -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")
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user