Simplify is_ignored_lowlevel_message
This commit is contained in:
parent
abb5c9f638
commit
a5d9661d73
@ -55,67 +55,55 @@ def is_ignored_qt_message(message):
|
|||||||
|
|
||||||
def is_ignored_lowlevel_message(message):
|
def is_ignored_lowlevel_message(message):
|
||||||
"""Check if we want to ignore a lowlevel process output."""
|
"""Check if we want to ignore a lowlevel process output."""
|
||||||
if message.startswith('Xlib: sequence lost'):
|
ignored_messages = [
|
||||||
# https://travis-ci.org/qutebrowser/qutebrowser/jobs/157941720
|
# https://travis-ci.org/qutebrowser/qutebrowser/jobs/157941720
|
||||||
# ???
|
# ???
|
||||||
return True
|
'Xlib: sequence lost*',
|
||||||
elif ("_dl_allocate_tls_init: Assertion `listp->slotinfo[cnt].gen <= "
|
|
||||||
"GL(dl_tls_generation)' failed!" in message):
|
|
||||||
# Started appearing with Qt 5.8...
|
# Started appearing with Qt 5.8...
|
||||||
# http://patchwork.sourceware.org/patch/10255/
|
# http://patchwork.sourceware.org/patch/10255/
|
||||||
return True
|
("*_dl_allocate_tls_init: Assertion `listp->slotinfo[cnt].gen <= "
|
||||||
elif message == 'getrlimit(RLIMIT_NOFILE) failed':
|
"GL(dl_tls_generation)' failed!*"),
|
||||||
return True
|
# ???
|
||||||
# Travis CI containers don't have a /etc/machine-id
|
'getrlimit(RLIMIT_NOFILE) failed',
|
||||||
elif message.endswith('D-Bus library appears to be incorrectly set up; '
|
# Travis CI containers don't have a /etc/machine-id
|
||||||
'failed to read machine uuid: Failed to open '
|
('*D-Bus library appears to be incorrectly set up; failed to read '
|
||||||
'"/etc/machine-id": No such file or directory'):
|
'machine uuid: Failed to open "/etc/machine-id": No such file or '
|
||||||
return True
|
'directory'),
|
||||||
elif message == ('See the manual page for dbus-uuidgen to correct this '
|
'See the manual page for dbus-uuidgen to correct this issue.',
|
||||||
'issue.'):
|
# Travis CI macOS:
|
||||||
return True
|
# 2017-09-11 07:32:56.191 QtWebEngineProcess[5455:28501] Couldn't set
|
||||||
# Travis CI macOS:
|
# selectedTextBackgroundColor from default ()
|
||||||
# 2017-09-11 07:32:56.191 QtWebEngineProcess[5455:28501] Couldn't set
|
"* Couldn't set selectedTextBackgroundColor from default ()"
|
||||||
# selectedTextBackgroundColor from default ()
|
# Mac Mini:
|
||||||
elif message.endswith("Couldn't set selectedTextBackgroundColor from "
|
# <<<< VTVideoEncoderSelection >>>>
|
||||||
"default ()"):
|
# VTSelectAndCreateVideoEncoderInstanceInternal: no video encoder
|
||||||
return True
|
# found for 'avc1'
|
||||||
# Mac Mini:
|
#
|
||||||
# <<<< VTVideoEncoderSelection >>>>
|
# [22:32:03.636] VTSelectAndCreateVideoEncoderInstanceInternal
|
||||||
# VTSelectAndCreateVideoEncoderInstanceInternal: no video encoder found for
|
# signalled err=-12908 (err) (Video encoder not available) at
|
||||||
# 'avc1'
|
# /SourceCache/CoreMedia_frameworks/CoreMedia-1562.240/Sources/
|
||||||
#
|
# VideoToolbox/VTVideoEncoderSelection.c line 1245
|
||||||
# [22:32:03.636] VTSelectAndCreateVideoEncoderInstanceInternal signalled
|
#
|
||||||
# err=-12908 (err) (Video encoder not available) at
|
# [22:32:03.636] VTCompressionSessionCreate signalled err=-12908 (err)
|
||||||
# /SourceCache/CoreMedia_frameworks/CoreMedia-1562.240/Sources/
|
# (Could not select and open encoder instance) at
|
||||||
# VideoToolbox/VTVideoEncoderSelection.c line 1245
|
# /SourceCache/CoreMedia_frameworks/CoreMedia-1562.240/Sources/
|
||||||
#
|
# VideoToolbox/VTCompressionSession.c # line 946
|
||||||
# [22:32:03.636] VTCompressionSessionCreate signalled err=-12908 (err)
|
'*VTSelectAndCreateVideoEncoderInstanceInternal*',
|
||||||
# (Could not select and open encoder instance) at
|
'*VTSelectAndCreateVideoEncoderInstanceInternal*',
|
||||||
# /SourceCache/CoreMedia_frameworks/CoreMedia-1562.240/Sources/
|
'*VTCompressionSessionCreate*',
|
||||||
# VideoToolbox/VTCompressionSession.c # line 946
|
# During shutdown on AppVeyor:
|
||||||
elif 'VTSelectAndCreateVideoEncoderInstanceInternal' in message:
|
# https://ci.appveyor.com/project/qutebrowser/qutebrowser/build/master-2089/job/or4tbct1oeqsfhfm
|
||||||
return True
|
'QNetworkProxyFactory: factory 0x* has returned an empty result set',
|
||||||
elif 'VTSelectAndCreateVideoEncoderInstanceInternal' in message:
|
|
||||||
return True
|
|
||||||
elif 'VTCompressionSessionCreate' in message:
|
|
||||||
return True
|
|
||||||
# During shutdown on AppVeyor:
|
|
||||||
# https://ci.appveyor.com/project/qutebrowser/qutebrowser/build/master-2089/job/or4tbct1oeqsfhfm
|
|
||||||
elif (message.startswith('QNetworkProxyFactory: factory 0x') and
|
|
||||||
message.endswith(' has returned an empty result set')):
|
|
||||||
return True
|
|
||||||
elif message == ' Error: No such file or directory':
|
|
||||||
# Qt 5.10 with debug Chromium
|
# Qt 5.10 with debug Chromium
|
||||||
# [1016/155149.941048:WARNING:stack_trace_posix.cc(625)] Failed to open
|
# [1016/155149.941048:WARNING:stack_trace_posix.cc(625)] Failed to open
|
||||||
# file: /home/florian/#14687139 (deleted)
|
# file: /home/florian/#14687139 (deleted)
|
||||||
# Error: No such file or directory
|
# Error: No such file or directory
|
||||||
return True
|
' Error: No such file or directory',
|
||||||
# Qt 5.7.1
|
# Qt 5.7.1
|
||||||
elif message.startswith('qt.network.ssl: QSslSocket: cannot call '
|
'qt.network.ssl: QSslSocket: cannot call unresolved function *',
|
||||||
'unresolved function '):
|
]
|
||||||
return True
|
return any(testutils.pattern_match(pattern=pattern, value=message)
|
||||||
return False
|
for pattern in ignored_messages)
|
||||||
|
|
||||||
|
|
||||||
def is_ignored_chromium_message(line):
|
def is_ignored_chromium_message(line):
|
||||||
|
Loading…
Reference in New Issue
Block a user