summaryrefslogtreecommitdiffstats
path: root/src/test/testcases
diff options
context:
space:
mode:
authorspashabk-in <shakeebbk@in.ibm.com>2018-06-01 07:01:51 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2018-06-20 22:24:49 -0400
commit8ea4ecdb8d568710cd8df12130397efc7edc3b73 (patch)
tree6ee0f1b2d8c8bff24145634f26fc19567a556987 /src/test/testcases
parent45f5609a54bb65c60777eb419f8b13d2322c859f (diff)
downloadtalos-sbe-8ea4ecdb8d568710cd8df12130397efc7edc3b73.tar.gz
talos-sbe-8ea4ecdb8d568710cd8df12130397efc7edc3b73.zip
Fill MBOX response on get capabilities
Change-Id: I0d5f9cbc940a5f84278acea96d5f963b3a0a4d9e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59726 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/test/testcases')
-rw-r--r--src/test/testcases/testPSUGetCapabilities.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/testcases/testPSUGetCapabilities.py b/src/test/testcases/testPSUGetCapabilities.py
index d112259d..78231980 100644
--- a/src/test/testcases/testPSUGetCapabilities.py
+++ b/src/test/testcases/testPSUGetCapabilities.py
@@ -96,6 +96,9 @@ def getCapabilities(addr, size, exp_status):
#----------------------------------------------------------------------------------------------------------------
["read", reg.PSU_HOST_DOORBELL_REG_WO_OR, "0", 8, "8000000000000000", "Reading Host Doorbell for Interrupt"],
)
+ length = 0
+ if exp_status == 0:
+ length = 92
'''
#---------------------
# Host side test data
@@ -106,6 +109,7 @@ def getCapabilities(addr, size, exp_status):
# OP Reg ValueToWrite size Test Expected Data Description
#----------------------------------------------------------------------------------------------------------------
["read", reg.REG_MBOX4, "0", 8, getdoubleword((exp_status << 32)+0x00F0D702), "Reading Host MBOX4 data to Validate"],
+ ["read", reg.REG_MBOX5, "0", 8, getdoubleword(length), "Reading Host MBOX4 data to Validate"],
)
# HOST->SBE data set execution - Less length setup
regObj.ExecuteTestOp( testPSUUtil.simSbeObj, sbe_test_data )
OpenPOWER on IntegriCloud