[PATCH phosphor-host-ipmid 2/2] support correct methods in test

OpenBMC Patches openbmc-patches at stwcx.xyz
Wed Dec 16 09:20:53 AEDT 2015


From: Chris Austen <austenc at us.ibm.com>

---
 testit.C | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/testit.C b/testit.C
index 7ea5d5d..a0cd2c1 100644
--- a/testit.C
+++ b/testit.C
@@ -109,11 +109,11 @@ void testprep(void) {
 
 int main() {
 
-    testprep(); check_results(updateSensorRecordFromSSRAESC(testrec_bootprogress), "value", "FW Progress, Docking station attachment");
-    testprep(); check_results(updateSensorRecordFromSSRAESC(testrec_sensor1), "present", "True");
-    testprep(); check_results(updateSensorRecordFromSSRAESC(testrec_sensor2), "present", "False");
-    testprep(); check_results(updateSensorRecordFromSSRAESC(testrec_procfailed), "fault", "False");
-    testprep(); check_results(updateSensorRecordFromSSRAESC(testrec_bootcount), "value", "3");
+    testprep(); check_results(updateSensorRecordFromSSRAESC(testrec_bootprogress), "setValue", "FW Progress, Docking station attachment");
+    testprep(); check_results(updateSensorRecordFromSSRAESC(testrec_sensor1), "setPresent", "True");
+    testprep(); check_results(updateSensorRecordFromSSRAESC(testrec_sensor2), "setPresent", "False");
+    testprep(); check_results(updateSensorRecordFromSSRAESC(testrec_procfailed), "setFault", "False");
+    testprep(); check_results(updateSensorRecordFromSSRAESC(testrec_bootcount), "setValue", "3");
     testprep(); check_results(updateSensorRecordFromSSRAESC(testrec_invalidnumber), "", "");
 
 	return 0;
-- 
2.6.3




More information about the openbmc mailing list