diff options
| -rw-r--r-- | meta/lib/oeqa/runtime/cases/parselogs.py | 29 |
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' |
