summaryrefslogtreecommitdiffstats
path: root/src/usr/fapi2/test/fapi2HwAccessTest.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/fapi2/test/fapi2HwAccessTest.H')
-rw-r--r--src/usr/fapi2/test/fapi2HwAccessTest.H34
1 files changed, 2 insertions, 32 deletions
diff --git a/src/usr/fapi2/test/fapi2HwAccessTest.H b/src/usr/fapi2/test/fapi2HwAccessTest.H
index 61bd1ced5..1c8a596b0 100644
--- a/src/usr/fapi2/test/fapi2HwAccessTest.H
+++ b/src/usr/fapi2/test/fapi2HwAccessTest.H
@@ -75,45 +75,15 @@ void test_fapi2HwAccess()
// Get a list of all of the proc chips
TARGETING::getAllChips(l_chipList, TARGETING::TYPE_PROC, false);
- TARGETING::Target * l_nimbusProc = nullptr;
- TARGETING::Target * l_cumulusProc = nullptr;
- TARGETING::Target * l_proc = nullptr;
-
- //Take the first NIMBUS proc and use it
- for(uint32_t i = 0; i < l_chipList.size(); i++)
- {
- if(TARGETING::MODEL_NIMBUS ==
- l_chipList[i]->getAttr<TARGETING::ATTR_MODEL>())
- {
- l_nimbusProc = l_chipList[i];
- break;
- }
- if(TARGETING::MODEL_CUMULUS ==
- l_chipList[i]->getAttr<TARGETING::ATTR_MODEL>())
- {
- l_cumulusProc = l_chipList[i];
- break;
- }
- }
-
numTests++;
- if (l_nimbusProc != nullptr)
- {
- l_proc = l_nimbusProc;
- }
- else if (l_cumulusProc != nullptr)
- {
- l_proc = l_cumulusProc;
- }
- else //both are nullptr
+ if(l_chipList.size() == 0)
{
TS_FAIL("FAPI2_fapi2HwAccess:: could not find any procs, skipping tests");
numFails++;
break;
}
- Target<fapi2::TARGET_TYPE_PROC_CHIP> fapi2_procTarget(
- l_proc);
+ Target<fapi2::TARGET_TYPE_PROC_CHIP> fapi2_procTarget(l_chipList[0]);
numTests++;
FAPI_INVOKE_HWP(l_errl, p9_scomtest_getscom_fail, fapi2_procTarget);
OpenPOWER on IntegriCloud