mirror of
https://github.com/scopatz/nanorc
synced 2024-10-31 23:00:00 +01:00
[test] Adapt new error message and new behavior
- New error message "Standard input is not a terminal" should be ignored. - nano changed its behavior to produce error messages AFTER program exited.
This commit is contained in:
parent
238edce820
commit
faa19558b2
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
@ -35,6 +35,9 @@ jobs:
|
||||
run: |
|
||||
mkdir -p ~/.nano/
|
||||
cp -al *.nanorc ~/.nano/
|
||||
TERM=xterm timeout 1s nano --rcfile ./nanorc >/dev/null 2>error.txt || true
|
||||
grep -v -e "Received SIGHUP or SIGTERM" -e "Too many errors from stdin" error.txt && false
|
||||
echo "" | TERM=xterm timeout 1s nano --rcfile ./nanorc >/dev/null 2>error.txt || true
|
||||
if grep -v -e "Received SIGHUP or SIGTERM" -e "Too many errors from stdin" \
|
||||
-e "Standard input is not a terminal" error.txt; then
|
||||
exit 1
|
||||
fi
|
||||
echo "All seems good!"
|
||||
|
Loading…
Reference in New Issue
Block a user