summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2023-09-21 14:48:27 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-22 07:45:17 +0100
commitb6d19e347d145eba086d684618d78efda578296e (patch)
treedd5f4a9b29c10c71d84b26da7a13e39271073939 /meta/lib/oeqa/runtime
parentc105791979cb210ebe31d98f561fa4bac79d3849 (diff)
downloadpoky-b6d19e347d145eba086d684618d78efda578296e.tar.gz
oeqa/runtime/parselogs: don't bother to show target hardware information
This information is pretty useless as we know what the target is from the build configuration (be it a qemu machine or real hardware). (From OE-Core rev: 7821c42172191e3c16ab8662a9e4f7e921830db0) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime')
-rw-r--r--meta/lib/oeqa/runtime/cases/parselogs.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/meta/lib/oeqa/runtime/cases/parselogs.py b/meta/lib/oeqa/runtime/cases/parselogs.py
index 8fd5a86e14..e62ab2c44e 100644
--- a/meta/lib/oeqa/runtime/cases/parselogs.py
+++ b/meta/lib/oeqa/runtime/cases/parselogs.py
@@ -237,34 +237,6 @@ class ParseLogsTest(OERuntimeTestCase):
237 def getWorkdir(self): 237 def getWorkdir(self):
238 return self.td.get('WORKDIR', '') 238 return self.td.get('WORKDIR', '')
239 239
240 # Get some information on the CPU of the machine to display at the
241 # beginning of the output. This info might be useful in some cases.
242 def getHardwareInfo(self):
243 hwi = ""
244 cmd = ('cat /proc/cpuinfo | grep "model name" | head -n1 | '
245 " awk 'BEGIN{FS=\":\"}{print $2}'")
246 _, cpu_name = self.target.run(cmd)
247
248 cmd = ('cat /proc/cpuinfo | grep "cpu cores" | head -n1 | '
249 "awk {'print $4'}")
250 _, cpu_physical_cores = self.target.run(cmd)
251
252 cmd = 'cat /proc/cpuinfo | grep "processor" | wc -l'
253 _, cpu_logical_cores = self.target.run(cmd)
254
255 _, cpu_arch = self.target.run('uname -m')
256
257 hwi += 'Machine information: \n'
258 hwi += '*******************************\n'
259 hwi += 'Machine name: ' + self.getMachine() + '\n'
260 hwi += 'CPU: ' + str(cpu_name) + '\n'
261 hwi += 'Arch: ' + str(cpu_arch)+ '\n'
262 hwi += 'Physical cores: ' + str(cpu_physical_cores) + '\n'
263 hwi += 'Logical cores: ' + str(cpu_logical_cores) + '\n'
264 hwi += '*******************************\n'
265
266 return hwi
267
268 # Go through the log locations provided and if it's a folder 240 # Go through the log locations provided and if it's a folder
269 # create a list with all the .log files in it, if it's a file 241 # create a list with all the .log files in it, if it's a file
270 # just add it to that list. 242 # just add it to that list.
@@ -376,7 +348,6 @@ class ParseLogsTest(OERuntimeTestCase):
376 self.write_dmesg() 348 self.write_dmesg()
377 log_list = self.get_local_log_list(self.log_locations) 349 log_list = self.get_local_log_list(self.log_locations)
378 result = self.parse_logs(self.errors, self.ignore_errors, log_list) 350 result = self.parse_logs(self.errors, self.ignore_errors, log_list)
379 print(self.getHardwareInfo())
380 errcount = 0 351 errcount = 0
381 for log in result: 352 for log in result:
382 self.msg += 'Log: ' + log + '\n' 353 self.msg += 'Log: ' + log + '\n'