@@ -79,7 +79,6 @@ def collect_data(self, args=None) -> tuple[TaskResult, Optional[MemoryDataModel]
7979 console_log = True ,
8080 )
8181
82- # Collect lsmem data (Linux only)
8382 lsmem_data = None
8483 if self .system_info .os_family != OSFamily .WINDOWS :
8584 lsmem_cmd = self ._run_sut_cmd (self .CMD_LSMEM )
@@ -101,7 +100,7 @@ def collect_data(self, args=None) -> tuple[TaskResult, Optional[MemoryDataModel]
101100 "stderr" : lsmem_cmd .stderr ,
102101 },
103102 priority = EventPriority .WARNING ,
104- console_log = True ,
103+ console_log = False ,
105104 )
106105
107106 if mem_free and mem_total :
@@ -114,7 +113,7 @@ def collect_data(self, args=None) -> tuple[TaskResult, Optional[MemoryDataModel]
114113 data = mem_data .model_dump (),
115114 priority = EventPriority .INFO ,
116115 )
117- self .result .message = f"Memory: { mem_data . model_dump () } "
116+ self .result .message = f"Memory: mem_free= { mem_free } , mem_total= { mem_total } "
118117 self .result .status = ExecutionStatus .OK
119118 else :
120119 mem_data = None
@@ -142,7 +141,7 @@ def _parse_lsmem_output(self, output: str) -> dict:
142141 if not line :
143142 continue
144143
145- # Parse memory range lines (e.g., "0x0000000000000000-0x000000007fffffff 2G online yes 0-15")
144+ # Parse mem range lines (sample: "0x0000000000000000-0x000000007fffffff 2G online yes 0-15")
146145 if line .startswith ("0x" ):
147146 parts = line .split ()
148147 if len (parts ) >= 4 :
0 commit comments