]>
Commit | Line | Data |
---|---|---|
cc4e48fc JK |
1 | #!/bin/sh |
2 | ||
3 | test_expect_success 'set up terminal for tests' ' | |
e674c17d | 4 | if |
cc4e48fc JK |
5 | test_have_prereq PERL && |
6 | "$PERL_PATH" "$TEST_DIRECTORY"/test-terminal.perl \ | |
e23f436c | 7 | sh -c "test -t 1 && test -t 2" |
cc4e48fc | 8 | then |
e674c17d JN |
9 | test_set_prereq TTY && |
10 | test_terminal () { | |
11 | if ! test_declared_prereq TTY | |
12 | then | |
13 | echo >&4 "test_terminal: need to declare TTY prerequisite" | |
14 | return 127 | |
15 | fi | |
16 | "$PERL_PATH" "$TEST_DIRECTORY"/test-terminal.perl "$@" | |
17 | } | |
cc4e48fc JK |
18 | fi |
19 | ' |