mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 12:04:39 +08:00
tests: More timeout
This commit is contained in:
parent
9954074dde
commit
ac8b1db899
|
@ -4,12 +4,12 @@
|
|||
isolated-tmux-start
|
||||
|
||||
isolated-tmux send-keys \
|
||||
"sleep 0.25 &" Enter \
|
||||
"sleep 0.5 &" Enter \
|
||||
"echo hello"
|
||||
sleep .5
|
||||
sleep 1
|
||||
isolated-tmux send-keys Space world
|
||||
isolated-tmux capture-pane -p
|
||||
# CHECK: prompt 0> sleep 0.25 &
|
||||
# CHECK: prompt 0> sleep 0.5 &
|
||||
# CHECK: prompt 0> echo hello
|
||||
# CHECK: fish: Job 1, 'sleep 0.25 &' has ended
|
||||
# CHECK: fish: Job 1, 'sleep 0.5 &' has ended
|
||||
# CHECK: prompt 0> echo hello world
|
||||
|
|
|
@ -47,10 +47,9 @@ expect_prompt()
|
|||
sendline("function postexec --on-event fish_postexec; echo fish_postexec spotted; end")
|
||||
expect_prompt()
|
||||
sendline("read")
|
||||
sleep(0.200)
|
||||
expect_re(r"\r\n?read> (\x1b\[\?1004h)?$")
|
||||
expect_re(r"\r\n?read> (\x1b\[\?1004h)?$", timeout=10)
|
||||
os.kill(sp.spawn.pid, signal.SIGINT)
|
||||
expect_str("fish_postexec spotted")
|
||||
expect_str("fish_postexec spotted", timeout=10)
|
||||
expect_prompt()
|
||||
|
||||
# Verify that the fish_kill_signal is set.
|
||||
|
|
Loading…
Reference in New Issue
Block a user