mirror of
https://github.com/facebook/zstd.git
synced 2025-03-07 01:10:04 +02:00
tests: can override isTerminal with environment variable
This commit is contained in:
parent
157479af0c
commit
ba7e2b6da7
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user