summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-05-25 17:56:17 +0200
committerFlorian Bruhin <me@the-compiler.org>2020-05-25 17:56:17 +0200
commite2475b9f23f3e38cf306fb2773dcab8200af3150 (patch)
treedf1358eb9353b853ec5a0ae4289194711a665fe6
parent1a97a1b5c74cb33ef2e0160e4a9100a59cd27d15 (diff)
downloadqutebrowser-e2475b9f23f3e38cf306fb2773dcab8200af3150.tar.gz
qutebrowser-e2475b9f23f3e38cf306fb2773dcab8200af3150.zip
tests: Don't suppress output if on CI
-rw-r--r--tests/end2end/fixtures/testprocess.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/end2end/fixtures/testprocess.py b/tests/end2end/fixtures/testprocess.py
index 3c19b86ef..08f9754db 100644
--- a/tests/end2end/fixtures/testprocess.py
+++ b/tests/end2end/fixtures/testprocess.py
@@ -74,7 +74,10 @@ def _render_log(data, *, verbose, threshold=100):
data = [str(d) for d in data]
is_exception = any('Traceback (most recent call last):' in line or
'Uncaught exception' in line for line in data)
- if len(data) > threshold and not verbose and not is_exception:
+ if (len(data) > threshold and
+ not verbose and
+ not is_exception and
+ not utils.ON_CI):
msg = '[{} lines suppressed, use -v to show]'.format(
len(data) - threshold)
data = [msg] + data[-threshold:]