diff --git a/tests/clickhouse-test b/tests/clickhouse-test index 2215982affe..1446c49b08f 100755 --- a/tests/clickhouse-test +++ b/tests/clickhouse-test @@ -76,7 +76,10 @@ def trim_for_log(s): if not s: return s lines = s.splitlines() - return "\n".join(lines[:50] + ["#" * 100] + lines[-50:]) + if len(lines) > 100: + return "\n".join(lines[:50] + ["#" * 100] + lines[-50:]) + else: + return "\n".join(lines) class HTTPError(Exception):