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.
check_ok()
{
if ! $TMUX "$@"; then
if ! $TMUX "$@" </dev/null; then
echo "Command failed (expected success): $*"
exit 1
fi
@@ -45,7 +45,7 @@ check_fail()
{
exp="$1"
shift
out=$($TMUX "$@" 2>&1)
out=$($TMUX "$@" </dev/null 2>&1)
if [ $? -eq 0 ]; then
echo "Command succeeded (expected failure): $*"
exit 1