From: Yann Collet Date: Thu, 17 Oct 2019 22:07:47 +0000 (-0700) Subject: tests: can override isTerminal with environment variable X-Git-Tag: v1.4.4~1^2~23^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba7e2b6da73ca9dc9279357d8649e075c35030ce;p=thirdparty%2Fzstd.git tests: can override isTerminal with environment variable --- diff --git a/tests/playTests.sh b/tests/playTests.sh index 06de4f8ac..f63a7f69e 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -64,11 +64,12 @@ PRGDIR="$SCRIPT_DIR/../programs" TESTDIR="$SCRIPT_DIR/../tests" UNAME=$(uname) -isTerminal=false +detectedTerminal=false if [ -t 0 ] && [ -t 1 ] then - isTerminal=true + detectedTerminal=true fi +isTerminal=${isTerminal:-$detectedTerminal} isWindows=false INTOVOID="/dev/null"