mirror of
https://github.com/powerline/powerline.git
synced 2025-07-22 21:35:14 +02:00
Merge pull request #1263 from ZyX-I/rc-remove-read-failed
When using `rc` remove “read() failed” messages
This commit is contained in:
commit
d562844a1a
@ -98,4 +98,7 @@ with codecs.open(fname, 'r', encoding='utf-8') as R:
|
||||
line = IPYPY_DEANSI_RE.subn('', line)[0]
|
||||
if line == '\n' and not was_empty:
|
||||
line = ''
|
||||
elif shell == 'rc':
|
||||
if line == 'read() failed: Connection reset by peer\n':
|
||||
line = ''
|
||||
W.write(line)
|
||||
|
@ -181,8 +181,13 @@ do_run_test() {
|
||||
}
|
||||
|
||||
run_test() {
|
||||
TEST_TYPE="$1"
|
||||
TEST_CLIENT="$2"
|
||||
SH="$3"
|
||||
local attempts=3
|
||||
while test $attempts -gt 0 ; do
|
||||
rm -f tests/shell/${SH}.${TEST_TYPE}.${TEST_CLIENT}.log
|
||||
rm -f tests/shell/${SH}.${TEST_TYPE}.${TEST_CLIENT}.full.log
|
||||
do_run_test "$@" && return 0
|
||||
attempts=$(( attempts - 1 ))
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user