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.
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user