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:
parent
5e21cacf7a
commit
9077fcc3a4
1 changed files with 6 additions and 0 deletions
|
@ -166,6 +166,12 @@ function valxml
|
||||||
return $errors
|
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
|
command set +o posix 2>/dev/null
|
||||||
unset DISPLAY FIGNORE HISTFILE POSIXLY_CORRECT _AST_FEATURES
|
unset DISPLAY FIGNORE HISTFILE POSIXLY_CORRECT _AST_FEATURES
|
||||||
export ENV=/./dev/null
|
export ENV=/./dev/null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue