Commit 852e98d3 authored by Robert Schmidt's avatar Robert Schmidt

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.
parent 3c54daf4
...@@ -70,7 +70,7 @@ class Native(): ...@@ -70,7 +70,7 @@ class Native():
workSpacePath = f'{directory}/cmake_targets' workSpacePath = f'{directory}/cmake_targets'
runLogFile=f'{workSpacePath}/physim.log' runLogFile=f'{workSpacePath}/physim.log'
with cls_cmd.getConnection(host) as cmd: 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) physim_file = archiveArtifact(cmd, ctx, runLogFile)
success, msg = cls_analysis.Analysis.analyze_physim(physim_file, physim_test, options, threshold) success, msg = cls_analysis.Analysis.analyze_physim(physim_file, physim_test, options, threshold)
if success: if success:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment