assert_tty
This commit is contained in:
@@ -10,14 +10,14 @@ readonly TMP_DIRECTORY TMP_OUT TMP_ERR TMP_MIAOU
|
||||
|
||||
# functions
|
||||
|
||||
function assert_stderr {
|
||||
function assert_tty {
|
||||
((test_count++))
|
||||
if [[ -w /dev/stderr ]]; then
|
||||
if [[ -w /dev/tty ]]; then
|
||||
echo -n .
|
||||
return
|
||||
fi
|
||||
echo -n F
|
||||
failures+=("test -w /dev/stderr")
|
||||
failures+=("test -w /dev/tty")
|
||||
return 1
|
||||
}
|
||||
|
||||
@@ -148,8 +148,7 @@ mkdir -p "$TMP_DIRECTORY"
|
||||
TIMEFORMAT=$'\nelapsed: %Rs'
|
||||
|
||||
time {
|
||||
assert_stderr
|
||||
|
||||
assert_tty
|
||||
assert success
|
||||
assert exit_0
|
||||
assert return_conditional
|
||||
|
||||
Reference in New Issue
Block a user