Merge branch 'nd/strbuf-inline-styles'
[gitweb.git] / t / lib-terminal.sh
index 58d911d21b894ba05e878e6efbc234071795c600..9a2dca506a8d6c15f52e6ded3aa22a0f08f507a1 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+# Helpers for terminal output tests.
 
 test_expect_success PERL 'set up terminal for tests' '
        # Reading from the pty master seems to get stuck _sometimes_
@@ -19,7 +19,7 @@ test_expect_success PERL 'set up terminal for tests' '
        then
                :
        elif
-               "$PERL_PATH" "$TEST_DIRECTORY"/test-terminal.perl \
+               perl "$TEST_DIRECTORY"/test-terminal.perl \
                        sh -c "test -t 1 && test -t 2"
        then
                test_set_prereq TTY &&
@@ -29,7 +29,7 @@ test_expect_success PERL 'set up terminal for tests' '
                                echo >&4 "test_terminal: need to declare TTY prerequisite"
                                return 127
                        fi
-                       "$PERL_PATH" "$TEST_DIRECTORY"/test-terminal.perl "$@"
+                       perl "$TEST_DIRECTORY"/test-terminal.perl "$@"
                }
        fi
 '