Skip to content

Commit 222755f

Browse files
authored
Truncate the logs on Linux tests (#804)
1 parent 19e3420 commit 222755f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/gha/desktop_tester.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,11 @@ def run(self):
131131
self.logs = f.read()
132132
test_running = "All tests finished" not in self.logs
133133
open_process.kill()
134-
logging.info("Test result: %s", self.logs)
134+
if platform.system() == 'Linux':
135+
# Linux seems to have a problem printing out too much information, so truncate it
136+
logging.info("Test result: %s (Log might be truncated)", self.logs[:64000])
137+
else:
138+
logging.info("Test result: %s", self.logs)
135139
logging.info("Finished running %s", self.testapp_path)
136140

137141

0 commit comments

Comments
 (0)