fish-shell/tests/checks/tmux-job.fish

20 lines
490 B
Fish
Raw Normal View History

#RUN: %fish %s
#REQUIRES: command -v tmux
isolated-tmux-start
isolated-tmux send-keys \
2025-01-08 16:19:50 +00:00
"sleep 0.5 &" Enter
sleep 0.1
isolated-tmux send-keys \
"echo hello"
2025-01-08 16:19:50 +00:00
sleep 0.6
isolated-tmux send-keys Space world
2025-01-08 16:19:50 +00:00
sleep 0.1
isolated-tmux capture-pane -p
2024-04-25 19:36:31 +00:00
# CHECK: prompt 0> sleep 0.5 &
# CHECK: prompt 0> echo hello
2024-04-25 19:36:31 +00:00
# CHECK: fish: Job 1, 'sleep 0.5 &' has ended
# (I've seen this print " world", I guess it depends on tmux version and how big it thinks the terminal is)
# CHECK: {{.*}} world