From 21f6e2b9d43a1660a87a851cab755c27e9dc4ac2 Mon Sep 17 00:00:00 2001 From: Shubham Bansal Date: Thu, 4 Sep 2025 12:11:11 +0530 Subject: [PATCH] Trim system_out logs to last 1000 words in junit-xml file --- opl/junit_cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/opl/junit_cli.py b/opl/junit_cli.py index 5b6ffd6..902f0de 100755 --- a/opl/junit_cli.py +++ b/opl/junit_cli.py @@ -102,6 +102,7 @@ def add_to_suite(self, suite_name, new): except ValueError as e: logging.error(f"Failed to load {new['system-err'].name} file: {e}") + case.system_out = ' '.join(case.system_out.split()[-1000:]) #trim system_out logs to last 1000 words duration = (new["end"] - new["start"]).total_seconds() case.time = duration