3 test_expect_success
'set up terminal for tests' '
8 test_have_prereq PERL &&
9 "$PERL_PATH" "$TEST_DIRECTORY"/test-terminal.perl \
16 if test -e stdout_is_tty
18 test_terminal
() { "$@"; }
20 elif test -e test_terminal_works
23 "$PERL_PATH" "$TEST_DIRECTORY"/test-terminal.perl
"$@"
27 say
"# no usable terminal, so skipping some tests"