Fix test.

This commit is contained in:
Nicholas Marriott
2026-07-04 18:37:53 +01:00
parent 646637f53a
commit a19b961427

View File

@@ -32,7 +32,7 @@ $TMUX kill-server 2>/dev/null
# Run a command and require that it succeeds. # Run a command and require that it succeeds.
check_ok() check_ok()
{ {
if ! $TMUX "$@"; then if ! $TMUX "$@" </dev/null; then
echo "Command failed (expected success): $*" echo "Command failed (expected success): $*"
exit 1 exit 1
fi fi
@@ -45,7 +45,7 @@ check_fail()
{ {
exp="$1" exp="$1"
shift shift
out=$($TMUX "$@" 2>&1) out=$($TMUX "$@" </dev/null 2>&1)
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "Command succeeded (expected failure): $*" echo "Command succeeded (expected failure): $*"
exit 1 exit 1