diff --git a/pytest.ini b/pytest.ini index 3e9fa1bf0..e7583436b 100644 --- a/pytest.ini +++ b/pytest.ini @@ -23,6 +23,7 @@ markers = qtwebengine_osx_xfail: Tests which fail on OS X with QtWebEngine js_prompt: Tests needing to display a javascript prompt this: Used to mark tests during development + no_invalid_lines: Don't fail on unparseable lines in end2end tests qt_log_level_fail = WARNING qt_log_ignore = ^SpellCheck: .* diff --git a/tests/end2end/features/misc.feature b/tests/end2end/features/misc.feature index 7fbc77c89..0d843de14 100644 --- a/tests/end2end/features/misc.feature +++ b/tests/end2end/features/misc.feature @@ -641,3 +641,15 @@ Feature: Various utility commands. Scenario: Trying to enter command mode with :enter-mode When I run :enter-mode command Then the error "Mode command can't be entered manually!" should be shown + + ## Renderer crashes + + @qtwebkit_skip @no_invalid_lines + Scenario: Renderer crash + When I run :open -t chrome://crash + Then the error "Renderer process crashed" should be shown + + @qtwebkit_skip @no_invalid_lines + Scenario: Renderer kill + When I run :open -t chrome://kill + Then the error "Renderer process was killed" should be shown diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index ac9741636..9921a719e 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -244,7 +244,8 @@ class QuteProc(testprocess.Process): if not line.strip(): return None elif (is_ignored_qt_message(line) or - is_ignored_lowlevel_message(line)): + is_ignored_lowlevel_message(line) or + self.request.node.get_marker('no_invalid_lines')): return None else: raise