From 852e98d3852bd0b3303f753407402e1db82a013e Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Tue, 12 Aug 2025 10:13:22 +0200 Subject: [PATCH] Run_Physim(): avoid large console logs, rewrite file Many of these tests exit with an exit code != 0. Thus, the CI automatically logs the result. Rather, write everything including stderr to the file for analysis. Also, rewrite the file with ">" instead of appending through ">>". While appending works because the CI removes files after archiving, it seems "cleaner" to remove files. --- ci-scripts/cls_native.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci-scripts/cls_native.py b/ci-scripts/cls_native.py index 9546f93d28..1736cc144d 100644 --- a/ci-scripts/cls_native.py +++ b/ci-scripts/cls_native.py @@ -70,7 +70,7 @@ class Native(): workSpacePath = f'{directory}/cmake_targets' runLogFile=f'{workSpacePath}/physim.log' with cls_cmd.getConnection(host) as cmd: - cmd.run(f'sudo LD_LIBRARY_PATH=.:{DPDK_PATH}/lib64/ {workSpacePath}/ran_build/build/{physim_test} {options} >> {runLogFile}') + cmd.run(f'sudo LD_LIBRARY_PATH=.:{DPDK_PATH}/lib64/ {workSpacePath}/ran_build/build/{physim_test} {options} > {runLogFile} 2>&1') physim_file = archiveArtifact(cmd, ctx, runLogFile) success, msg = cls_analysis.Analysis.analyze_physim(physim_file, physim_test, options, threshold) if success: