Skip to content

Commit

Permalink
patch fix issue on parsing while fetching memory mode
Browse files Browse the repository at this point in the history
without patch :

16:10:07 [console-expect]#tail /proc/cpuinfo | grep MMU
16:10:07 MMU		: Radix
16:10:07 [console-expect]#echo $?
16:10:07
echo $?
16:10:07 0
16:10:07 [console-expect]#ERROR
16:10:09
16:10:09 ======================================================================
16:10:09 ERROR: runTest (testcases.MachineConfig.MachineConfig)
16:10:09 ----------------------------------------------------------------------
16:10:09 Traceback (most recent call last):
16:10:09   File "/var/lib/jenkins/workspace/ProfileSetup2/op-test/testcases/MachineConfig.py", line 117, in runTest
16:10:09     self.callConfig(key, lpar)
16:10:09   File "/var/lib/jenkins/workspace/ProfileSetup2/op-test/testcases/MachineConfig.py", line 189, in callConfig
16:10:09     status = OsConfig(self.cv_HMC, self.system_name,
16:10:09   File "/var/lib/jenkins/workspace/ProfileSetup2/op-test/testcases/MachineConfig.py", line 558, in __init__
16:10:09     self.mmu = str(self.mmulist[0]).split(':')[1].strip()
16:10:09 IndexError: list index out of range

Signed-off-by: Praveen K Pandey <[email protected]>
  • Loading branch information
PraveenPenguin committed Jul 15, 2024
1 parent b71b12e commit 2f8dbb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testcases/MachineConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def __init__(self, cv_HMC=None, system_name=None,
self.c = self.cv_HMC.get_host_console()
self.hmc_con = self.cv_HMC.ssh
self.mmulist = self.c.run_command("tail /proc/cpuinfo | grep MMU")
self.mmu = str(self.mmulist[0]).split(':')[1].strip()
self.mmu = str(self.mmulist).split(':')[1].strip()
self.cmdline = self.c.run_command("cat /proc/cmdline")
self.obj = OpTestInstallUtil.InstallUtil()
self.os_level = self.cv_HOST.host_get_OS_Level()
Expand Down

0 comments on commit 2f8dbb0

Please sign in to comment.