mirror of
https://github.com/tmux/tmux.git
synced 2026-10-09 11:44:23 +00:00
Fix tests.
This commit is contained in:
@@ -42,15 +42,14 @@ wait_status()
|
|||||||
wait_option()
|
wait_option()
|
||||||
{
|
{
|
||||||
option=$1
|
option=$1
|
||||||
want=$2
|
|
||||||
i=0
|
i=0
|
||||||
while [ "$i" -lt 100 ]; do
|
while [ "$i" -lt 100 ]; do
|
||||||
got=$($TMUX show -gv "$option" 2>/dev/null)
|
got=$($TMUX show -gv "$option" 2>/dev/null)
|
||||||
[ "$got" = "$want" ] && return
|
[ "$got" = "$2" ] && return
|
||||||
sleep 0.05
|
sleep 0.05
|
||||||
i=$((i + 1))
|
i=$((i + 1))
|
||||||
done
|
done
|
||||||
fail "got $option '$got', expected '$want'"
|
fail "got $option '$got', expected '$2'"
|
||||||
}
|
}
|
||||||
|
|
||||||
mouse()
|
mouse()
|
||||||
|
|||||||
Reference in New Issue
Block a user