Closed williamli80 closed 8 years ago
Can some one review and give LGTM in reviewable ?
This test case is for the story below: "Handle multiple attempts at ipmi reservation ids"( https://jazz07.rchland.ibm.com:13443/jazz/web/projects/OpenBMC#action=com.ibm.team.workitem.viewWorkItem&id=139963 ). Patch: https://github.com/openbmc/phosphor-host-ipmid/pull/82 https://github.com/openbmc/openpower-host-ipmi-oem/pull/11
Test case mechanism: We use a combination of 2 ipmi commands when we want to add an eSEL: "Reserve sel command" and "eSEL partial add command". In this situation, we would first reserve the esel repository by issuing a reserve sel command. We would then add the event log by issuing the esel partial add command.
Openbmc handles a global variable named reservation_id. Obmc returns reservation_id to us when receiving reserve id command, meanwhile reservation_id increases by one (+1).
To simulate a multiple attempt situation, we run 2 reserve sel command firstly to get 2 reservation_id, then issue an esel partial add command. The first reservation_id we got is expired, the second reservation_id is correct reservation_id. The idea is:
In those esel partial add command, the other parameters are just hard code (magic).
Please correct me.
Review status: 0 of 1 files reviewed at latest revision, 3 unresolved discussions.
_tests/test_esel.robot, line 42 [r2] (raw file):_
Execute Command rm /tmp/esel Sleep 10s
why sleep?
Comments from Reviewable
Hi, I'm worried that the "rm /tmp/esel" may conflict with the following test case which make write/read to /tmp/esel. Please correct me.
one test case should not effect the other. The Execute Command will no complete until it is done. You could replace the sleep with a ...
Execute Command sync
That would flush buffers
Review status: 0 of 1 files reviewed at latest revision, 3 unresolved discussions.
Comments from Reviewable
Ok! Thanks, Chris! "Execute Command sync" works.
Reviewed 1 of 1 files at r3. Review status: all files reviewed at latest revision, 3 unresolved discussions.
Comments from Reviewable
I see most of the comments addressed. Anything pending for LGTM?
Review status: all files reviewed at latest revision, 3 unresolved discussions.
Comments from Reviewable
Waiting for review.
Review status: all files reviewed at latest revision, 3 unresolved discussions.
Comments from Reviewable
all good from my end Chris AustenPOWER Systems Enablement Manager(512) 286-5184 (T/L: 363-5184) ----- Original message -----From: Manjunath A Kumatagi notifications@github.comTo: mkumatag/openbmc-automation openbmc-automation@noreply.github.comCc: Chris Austen/Austin/IBM@IBMUS, Comment comment@noreply.github.comSubject: Re: [mkumatag/openbmc-automation] Autotest on Handling multiple attempts at ipmi reservation ids -V2 (#50)Date: Mon, May 30, 2016 12:45 AM I see most of the comments addressed. Anything pending for LGTM? Previously, williamli80 (William Li ( Nan Li, 李楠)) wrote… Ok! Thanks, Chris! "Execute Command sync" works. Review status: all files reviewed at latest revision, 3 unresolved discussions. Comments from Reviewable —You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
1.Test Wrong ReservationID is for testing expired reservation id. 2.Test Correct ReservationID is for testing correct reservation id. 3.Ipmi command content is hardcode.
Signed-off-by: Nan Li bjlinan@cn.ibm.com
This change is