Skip to content

Commit 2f8dbb0

Browse files
patch fix issue on parsing while fetching memory mode
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]>
1 parent b71b12e commit 2f8dbb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testcases/MachineConfig.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def __init__(self, cv_HMC=None, system_name=None,
555555
self.c = self.cv_HMC.get_host_console()
556556
self.hmc_con = self.cv_HMC.ssh
557557
self.mmulist = self.c.run_command("tail /proc/cpuinfo | grep MMU")
558-
self.mmu = str(self.mmulist[0]).split(':')[1].strip()
558+
self.mmu = str(self.mmulist).split(':')[1].strip()
559559
self.cmdline = self.c.run_command("cat /proc/cmdline")
560560
self.obj = OpTestInstallUtil.InstallUtil()
561561
self.os_level = self.cv_HOST.host_get_OS_Level()

0 commit comments

Comments
 (0)