From 9de97f99c8d67f1e984faaea26e177dbf1dbcd1f Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Thu, 20 Feb 2025 17:50:58 +0100 Subject: [PATCH] Simplify logs2. --- integration-tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/integration-tests/conftest.py b/integration-tests/conftest.py index 2d3ae8a2..0aa3f28b 100644 --- a/integration-tests/conftest.py +++ b/integration-tests/conftest.py @@ -81,6 +81,8 @@ def container_log(request: SubRequest): if request.session.testsfailed: error_log.seek(0) print(error_log.read(), file=sys.stderr) + else: + error_log.truncate(0) class ResponseComparator(JSONSnapshotExtension):