Skip to content

Commit 43d9d88

Browse files
pridhivirajstewartsmith
authored andcommitted
Add some debug o/p for opal-prd activation.
Refer https://github.com/open-power/boston-openpower/issues/103 Signed-off-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
1 parent 885effd commit 43d9d88

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

testcases/OpTestPrdDriver.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
import OpTestConfiguration
5252
from common.OpTestError import OpTestError
5353
from common.OpTestSystem import OpSystemState
54+
from common.Exceptions import CommandFailed
55+
5456

5557
class ErrorToInject():
5658
def __init__(self, desc, FIR, FIMR, ERROR):
@@ -238,6 +240,12 @@ def runTest(self):
238240

239241
l_con.run_command("stty cols 300")
240242
l_con.run_command("stty rows 30")
243+
244+
try:
245+
l_con.run_command("opal-prd --pnor /dev/mtd0 --debug --stdio")
246+
except CommandFailed as cf:
247+
print "opal-prd failed to activate %s" % str(cf)
248+
241249
# check for IPOLL mask register value to check opal-prd is running or not
242250
l_cmd = "PATH=/usr/local/sbin:$PATH getscom -c 0x0 %s" % self.IPOLL_MASK_REGISTER
243251
l_res = l_con.run_command(l_cmd)

0 commit comments

Comments
 (0)