mirror of
https://github.com/tmux/tmux.git
synced 2026-10-09 19:54:22 +00:00
Regression test fixes.
This commit is contained in:
@@ -49,7 +49,13 @@ tmux_run()
|
||||
name=$1
|
||||
shift
|
||||
|
||||
out=$(run_cmd $TMUX "$@" 2>&1)
|
||||
out=$(
|
||||
if command -v timeout >/dev/null 2>&1; then
|
||||
timeout 10 $TMUX "$@" 2>&1
|
||||
else
|
||||
$TMUX "$@" 2>&1
|
||||
fi
|
||||
)
|
||||
rc=$?
|
||||
bounded "$name" "$out"
|
||||
[ "$rc" -eq 0 ] || fail "$name failed: $out"
|
||||
@@ -58,7 +64,13 @@ tmux_run()
|
||||
|
||||
capture()
|
||||
{
|
||||
out=$(run_cmd $TMUX2 capture-pane -p -t out:0 2>/dev/null)
|
||||
out=$(
|
||||
if command -v timeout >/dev/null 2>&1; then
|
||||
timeout 10 $TMUX2 capture-pane -p -t out:0 2>/dev/null
|
||||
else
|
||||
$TMUX2 capture-pane -p -t out:0 2>/dev/null
|
||||
fi
|
||||
)
|
||||
rc=$?
|
||||
bounded "capture-pane" "$out"
|
||||
[ "$rc" -eq 0 ] || fail "capture-pane failed"
|
||||
@@ -67,7 +79,14 @@ capture()
|
||||
|
||||
capture_esc()
|
||||
{
|
||||
out=$(run_cmd $TMUX2 capture-pane -pe -t out:0 2>/dev/null)
|
||||
out=$(
|
||||
if command -v timeout >/dev/null 2>&1; then
|
||||
timeout 10 $TMUX2 capture-pane -pe -t out:0 \
|
||||
2>/dev/null
|
||||
else
|
||||
$TMUX2 capture-pane -pe -t out:0 2>/dev/null
|
||||
fi
|
||||
)
|
||||
rc=$?
|
||||
bounded "capture-pane -e" "$out"
|
||||
[ "$rc" -eq 0 ] || fail "capture-pane -e failed"
|
||||
|
||||
Reference in New Issue
Block a user