1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

shtests: refuse to run if no /dev/tty (re: 14632361)

This commit is contained in:
Martijn Dekker 2020-09-01 15:43:54 +01:00
parent 5e21cacf7a
commit 9077fcc3a4

View file

@ -166,6 +166,12 @@ function valxml
return $errors
}
if [[ ! -c /dev/tty || ! -w /dev/tty ]]
then print "The regression tests require a functioning /dev/tty." >&2
print "If not available, try script(1) to simulate a tty." >&2
exit 128
fi
command set +o posix 2>/dev/null
unset DISPLAY FIGNORE HISTFILE POSIXLY_CORRECT _AST_FEATURES
export ENV=/./dev/null