mirror of
https://github.com/facebook/zstd.git
synced 2025-10-18 00:03:50 -04: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"
|
TESTDIR="$SCRIPT_DIR/../tests"
|
||||||
UNAME=$(uname)
|
UNAME=$(uname)
|
||||||
|
|
||||||
isTerminal=false
|
detectedTerminal=false
|
||||||
if [ -t 0 ] && [ -t 1 ]
|
if [ -t 0 ] && [ -t 1 ]
|
||||||
then
|
then
|
||||||
isTerminal=true
|
detectedTerminal=true
|
||||||
fi
|
fi
|
||||||
|
isTerminal=${isTerminal:-$detectedTerminal}
|
||||||
|
|
||||||
isWindows=false
|
isWindows=false
|
||||||
INTOVOID="/dev/null"
|
INTOVOID="/dev/null"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user