Skip to content

Commit

Permalink
echo-wait: fix failed test on fresh macos ci
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Sep 1, 2023
1 parent b206ab9 commit 3265e71
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions commands/echo-wait
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,23 @@ function echo_wait_test() (
broken_pipe echo-wait "$@"
}

# test
# tests
eval_tester --name='broken pipe is broken' --status=23 --stdout=$'before broken pipe' --ignore-stderr \
-- broken_pipe_to_control
eval_tester --name='broken pipe to sponge' --stdout=$'before broken pipe\n200after broken pipe' --ignore-stderr \
-- broken_pipe_to_sponge

if command-exists sponge; then # on fresh macos ci, it won't exist
eval_tester --name='broken pipe to sponge' --stdout=$'before broken pipe\n200after broken pipe' --ignore-stderr \
-- broken_pipe_to_sponge
fi

eval_tester --name='broken pipe to echo-wait --no-sponge' --stdout=$'before broken pipe\n200after broken pipe' --ignore-stderr \
-- broken_pipe_to_echo_wait --no-sponge
eval_tester --name='broken pipe to echo-wait --sponge' --stdout=$'before broken pipe\n200after broken pipe' --ignore-stderr \
-- broken_pipe_to_echo_wait --sponge

if command-exists sponge; then # on fresh macos ci, it won't exist
eval_tester --name='broken pipe to echo-wait --sponge' --stdout=$'before broken pipe\n200after broken pipe' --ignore-stderr \
-- broken_pipe_to_echo_wait --sponge
fi

eval_tester --name='broken pipe to echo-wait' --stdout=$'before broken pipe\n200after broken pipe' --ignore-stderr \
-- broken_pipe_to_echo_wait

Expand Down

0 comments on commit 3265e71

Please sign in to comment.