1*** Settings ***
2Documentation  This module provides one wrapper keyword for each kind of boot
3...            test supported by obmc_boot_test.py.
4
5Resource  ../extended/obmc_boot_test_resource.robot
6
7*** Keywords ***
8REST Power On
9    [Documentation]  Do "REST Power On" boot test.
10    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
11
12    # Description of argument(s):
13    # stack_mode                    If stack_mode is set to "skip", each test
14    #                               specified in the boot_stack is only
15    #                               performed if the machine is not already in
16    #                               the state that would normally result from
17    #                               running the given boot test.  Otherwise,
18    #                               the test is skipped.  If stack_mode is set
19    #                               to "normal", all tests from the boot_stack
20    #                               are performed.  "skip" mode is useful when
21    #                               you simply want the machine in a desired
22    #                               state.  The default value is the global
23    #                               value of "${stack_mode}"
24    # quiet                         If this parameter is set to ${1}, this
25    #                               keyword will print only essential
26    #                               information.  The default value is the
27    #                               global value of "${quiet}"
28
29    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=REST Power On
30    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
31    Run Key U  ${cmd_buf}
32
33
34Redfish Power On
35    [Documentation]  Do "Redfish Power On" boot test.
36    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
37
38    # Description of argument(s):
39    # stack_mode                    If stack_mode is set to "skip", each test
40    #                               specified in the boot_stack is only
41    #                               performed if the machine is not already in
42    #                               the state that would normally result from
43    #                               running the given boot test.  Otherwise,
44    #                               the test is skipped.  If stack_mode is set
45    #                               to "normal", all tests from the boot_stack
46    #                               are performed.  "skip" mode is useful when
47    #                               you simply want the machine in a desired
48    #                               state.  The default value is the global
49    #                               value of "${stack_mode}"
50    # quiet                         If this parameter is set to ${1}, this
51    #                               keyword will print only essential
52    #                               information.  The default value is the
53    #                               global value of "${quiet}"
54
55    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=Redfish Power On
56    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
57    Run Key U  ${cmd_buf}
58
59
60IPMI Power On
61    [Documentation]  Do "IPMI Power On" boot test.
62    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
63
64    # Description of argument(s):
65    # stack_mode                    If stack_mode is set to "skip", each test
66    #                               specified in the boot_stack is only
67    #                               performed if the machine is not already in
68    #                               the state that would normally result from
69    #                               running the given boot test.  Otherwise,
70    #                               the test is skipped.  If stack_mode is set
71    #                               to "normal", all tests from the boot_stack
72    #                               are performed.  "skip" mode is useful when
73    #                               you simply want the machine in a desired
74    #                               state.  The default value is the global
75    #                               value of "${stack_mode}"
76    # quiet                         If this parameter is set to ${1}, this
77    #                               keyword will print only essential
78    #                               information.  The default value is the
79    #                               global value of "${quiet}"
80
81    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power On
82    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
83    Run Key U  ${cmd_buf}
84
85
86REST Power Off
87    [Documentation]  Do "REST Power Off" boot test.
88    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
89
90    # Description of argument(s):
91    # stack_mode                    If stack_mode is set to "skip", each test
92    #                               specified in the boot_stack is only
93    #                               performed if the machine is not already in
94    #                               the state that would normally result from
95    #                               running the given boot test.  Otherwise,
96    #                               the test is skipped.  If stack_mode is set
97    #                               to "normal", all tests from the boot_stack
98    #                               are performed.  "skip" mode is useful when
99    #                               you simply want the machine in a desired
100    #                               state.  The default value is the global
101    #                               value of "${stack_mode}"
102    # quiet                         If this parameter is set to ${1}, this
103    #                               keyword will print only essential
104    #                               information.  The default value is the
105    #                               global value of "${quiet}"
106
107    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=REST Power Off
108    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
109    Run Key U  ${cmd_buf}
110
111
112Redfish Power Off
113    [Documentation]  Do "Redfish Power Off" boot test.
114    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
115
116    # Description of argument(s):
117    # stack_mode                    If stack_mode is set to "skip", each test
118    #                               specified in the boot_stack is only
119    #                               performed if the machine is not already in
120    #                               the state that would normally result from
121    #                               running the given boot test.  Otherwise,
122    #                               the test is skipped.  If stack_mode is set
123    #                               to "normal", all tests from the boot_stack
124    #                               are performed.  "skip" mode is useful when
125    #                               you simply want the machine in a desired
126    #                               state.  The default value is the global
127    #                               value of "${stack_mode}"
128    # quiet                         If this parameter is set to ${1}, this
129    #                               keyword will print only essential
130    #                               information.  The default value is the
131    #                               global value of "${quiet}"
132
133    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=Redfish Power Off
134    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
135    Run Key U  ${cmd_buf}
136
137
138REST Hard Power Off
139    [Documentation]  Do "REST Hard Power Off" boot test.
140    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
141
142    # Description of argument(s):
143    # stack_mode                    If stack_mode is set to "skip", each test
144    #                               specified in the boot_stack is only
145    #                               performed if the machine is not already in
146    #                               the state that would normally result from
147    #                               running the given boot test.  Otherwise,
148    #                               the test is skipped.  If stack_mode is set
149    #                               to "normal", all tests from the boot_stack
150    #                               are performed.  "skip" mode is useful when
151    #                               you simply want the machine in a desired
152    #                               state.  The default value is the global
153    #                               value of "${stack_mode}"
154    # quiet                         If this parameter is set to ${1}, this
155    #                               keyword will print only essential
156    #                               information.  The default value is the
157    #                               global value of "${quiet}"
158
159    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=REST Hard Power Off
160    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
161    Run Key U  ${cmd_buf}
162
163
164Redfish Hard Power Off
165    [Documentation]  Do "Redfish Hard Power Off" boot test.
166    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
167
168    # Description of argument(s):
169    # stack_mode                    If stack_mode is set to "skip", each test
170    #                               specified in the boot_stack is only
171    #                               performed if the machine is not already in
172    #                               the state that would normally result from
173    #                               running the given boot test.  Otherwise,
174    #                               the test is skipped.  If stack_mode is set
175    #                               to "normal", all tests from the boot_stack
176    #                               are performed.  "skip" mode is useful when
177    #                               you simply want the machine in a desired
178    #                               state.  The default value is the global
179    #                               value of "${stack_mode}"
180    # quiet                         If this parameter is set to ${1}, this
181    #                               keyword will print only essential
182    #                               information.  The default value is the
183    #                               global value of "${quiet}"
184
185    ${cmd_buf}  Catenate  OBMC Boot Test
186    ...  \ loc_boot_stack=Redfish Hard Power Off
187    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
188    Run Key U  ${cmd_buf}
189
190
191IPMI Power Off
192    [Documentation]  Do "IPMI Power Off" boot test.
193    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
194
195    # Description of argument(s):
196    # stack_mode                    If stack_mode is set to "skip", each test
197    #                               specified in the boot_stack is only
198    #                               performed if the machine is not already in
199    #                               the state that would normally result from
200    #                               running the given boot test.  Otherwise,
201    #                               the test is skipped.  If stack_mode is set
202    #                               to "normal", all tests from the boot_stack
203    #                               are performed.  "skip" mode is useful when
204    #                               you simply want the machine in a desired
205    #                               state.  The default value is the global
206    #                               value of "${stack_mode}"
207    # quiet                         If this parameter is set to ${1}, this
208    #                               keyword will print only essential
209    #                               information.  The default value is the
210    #                               global value of "${quiet}"
211
212    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power Off
213    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
214    Run Key U  ${cmd_buf}
215
216
217IPMI Power Soft
218    [Documentation]  Do "IPMI Power Soft" boot test.
219    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
220
221    # Description of argument(s):
222    # stack_mode                    If stack_mode is set to "skip", each test
223    #                               specified in the boot_stack is only
224    #                               performed if the machine is not already in
225    #                               the state that would normally result from
226    #                               running the given boot test.  Otherwise,
227    #                               the test is skipped.  If stack_mode is set
228    #                               to "normal", all tests from the boot_stack
229    #                               are performed.  "skip" mode is useful when
230    #                               you simply want the machine in a desired
231    #                               state.  The default value is the global
232    #                               value of "${stack_mode}"
233    # quiet                         If this parameter is set to ${1}, this
234    #                               keyword will print only essential
235    #                               information.  The default value is the
236    #                               global value of "${quiet}"
237
238    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power Soft
239    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
240    Run Key U  ${cmd_buf}
241
242
243Host Power Off
244    [Documentation]  Do "Host Power Off" boot test.
245    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
246
247    # Description of argument(s):
248    # stack_mode                    If stack_mode is set to "skip", each test
249    #                               specified in the boot_stack is only
250    #                               performed if the machine is not already in
251    #                               the state that would normally result from
252    #                               running the given boot test.  Otherwise,
253    #                               the test is skipped.  If stack_mode is set
254    #                               to "normal", all tests from the boot_stack
255    #                               are performed.  "skip" mode is useful when
256    #                               you simply want the machine in a desired
257    #                               state.  The default value is the global
258    #                               value of "${stack_mode}"
259    # quiet                         If this parameter is set to ${1}, this
260    #                               keyword will print only essential
261    #                               information.  The default value is the
262    #                               global value of "${quiet}"
263
264    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=Host Power Off
265    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
266    Run Key U  ${cmd_buf}
267
268
269APOR
270    [Documentation]  Do "APOR" boot test.
271    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
272
273    # Description of argument(s):
274    # stack_mode                    If stack_mode is set to "skip", each test
275    #                               specified in the boot_stack is only
276    #                               performed if the machine is not already in
277    #                               the state that would normally result from
278    #                               running the given boot test.  Otherwise,
279    #                               the test is skipped.  If stack_mode is set
280    #                               to "normal", all tests from the boot_stack
281    #                               are performed.  "skip" mode is useful when
282    #                               you simply want the machine in a desired
283    #                               state.  The default value is the global
284    #                               value of "${stack_mode}"
285    # quiet                         If this parameter is set to ${1}, this
286    #                               keyword will print only essential
287    #                               information.  The default value is the
288    #                               global value of "${quiet}"
289
290    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=APOR
291    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
292    Run Key U  ${cmd_buf}
293
294
295OBMC Reboot (run)
296    [Documentation]  Do "OBMC Reboot (run)" boot test.
297    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
298
299    # Description of argument(s):
300    # stack_mode                    If stack_mode is set to "skip", each test
301    #                               specified in the boot_stack is only
302    #                               performed if the machine is not already in
303    #                               the state that would normally result from
304    #                               running the given boot test.  Otherwise,
305    #                               the test is skipped.  If stack_mode is set
306    #                               to "normal", all tests from the boot_stack
307    #                               are performed.  "skip" mode is useful when
308    #                               you simply want the machine in a desired
309    #                               state.  The default value is the global
310    #                               value of "${stack_mode}"
311    # quiet                         If this parameter is set to ${1}, this
312    #                               keyword will print only essential
313    #                               information.  The default value is the
314    #                               global value of "${quiet}"
315
316    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=OBMC Reboot (run)
317    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
318    Run Key U  ${cmd_buf}
319
320
321REST OBMC Reboot (run)
322    [Documentation]  Do "REST OBMC Reboot (run)" boot test.
323    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
324
325    # Description of argument(s):
326    # stack_mode                    If stack_mode is set to "skip", each test
327    #                               specified in the boot_stack is only
328    #                               performed if the machine is not already in
329    #                               the state that would normally result from
330    #                               running the given boot test.  Otherwise,
331    #                               the test is skipped.  If stack_mode is set
332    #                               to "normal", all tests from the boot_stack
333    #                               are performed.  "skip" mode is useful when
334    #                               you simply want the machine in a desired
335    #                               state.  The default value is the global
336    #                               value of "${stack_mode}"
337    # quiet                         If this parameter is set to ${1}, this
338    #                               keyword will print only essential
339    #                               information.  The default value is the
340    #                               global value of "${quiet}"
341
342    ${cmd_buf}  Catenate  OBMC Boot Test
343    ...  \ loc_boot_stack=REST OBMC Reboot (run)
344    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
345    Run Key U  ${cmd_buf}
346
347
348Redfish OBMC Reboot (run)
349    [Documentation]  Do "Redfish OBMC Reboot (run)" boot test.
350    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
351
352    # Description of argument(s):
353    # stack_mode                    If stack_mode is set to "skip", each test
354    #                               specified in the boot_stack is only
355    #                               performed if the machine is not already in
356    #                               the state that would normally result from
357    #                               running the given boot test.  Otherwise,
358    #                               the test is skipped.  If stack_mode is set
359    #                               to "normal", all tests from the boot_stack
360    #                               are performed.  "skip" mode is useful when
361    #                               you simply want the machine in a desired
362    #                               state.  The default value is the global
363    #                               value of "${stack_mode}"
364    # quiet                         If this parameter is set to ${1}, this
365    #                               keyword will print only essential
366    #                               information.  The default value is the
367    #                               global value of "${quiet}"
368
369    ${cmd_buf}  Catenate  OBMC Boot Test
370    ...  \ loc_boot_stack=Redfish OBMC Reboot (run)
371    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
372    Run Key U  ${cmd_buf}
373
374
375OBMC Reboot (off)
376    [Documentation]  Do "OBMC Reboot (off)" boot test.
377    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
378
379    # Description of argument(s):
380    # stack_mode                    If stack_mode is set to "skip", each test
381    #                               specified in the boot_stack is only
382    #                               performed if the machine is not already in
383    #                               the state that would normally result from
384    #                               running the given boot test.  Otherwise,
385    #                               the test is skipped.  If stack_mode is set
386    #                               to "normal", all tests from the boot_stack
387    #                               are performed.  "skip" mode is useful when
388    #                               you simply want the machine in a desired
389    #                               state.  The default value is the global
390    #                               value of "${stack_mode}"
391    # quiet                         If this parameter is set to ${1}, this
392    #                               keyword will print only essential
393    #                               information.  The default value is the
394    #                               global value of "${quiet}"
395
396    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=OBMC Reboot (off)
397    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
398    Run Key U  ${cmd_buf}
399
400
401REST OBMC Reboot (off)
402    [Documentation]  Do "REST OBMC Reboot (off)" boot test.
403    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
404
405    # Description of argument(s):
406    # stack_mode                    If stack_mode is set to "skip", each test
407    #                               specified in the boot_stack is only
408    #                               performed if the machine is not already in
409    #                               the state that would normally result from
410    #                               running the given boot test.  Otherwise,
411    #                               the test is skipped.  If stack_mode is set
412    #                               to "normal", all tests from the boot_stack
413    #                               are performed.  "skip" mode is useful when
414    #                               you simply want the machine in a desired
415    #                               state.  The default value is the global
416    #                               value of "${stack_mode}"
417    # quiet                         If this parameter is set to ${1}, this
418    #                               keyword will print only essential
419    #                               information.  The default value is the
420    #                               global value of "${quiet}"
421
422    ${cmd_buf}  Catenate  OBMC Boot Test
423    ...  \ loc_boot_stack=REST OBMC Reboot (off)
424    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
425    Run Key U  ${cmd_buf}
426
427
428Redfish OBMC Reboot (off)
429    [Documentation]  Do "Redfish OBMC Reboot (off)" boot test.
430    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
431
432    # Description of argument(s):
433    # stack_mode                    If stack_mode is set to "skip", each test
434    #                               specified in the boot_stack is only
435    #                               performed if the machine is not already in
436    #                               the state that would normally result from
437    #                               running the given boot test.  Otherwise,
438    #                               the test is skipped.  If stack_mode is set
439    #                               to "normal", all tests from the boot_stack
440    #                               are performed.  "skip" mode is useful when
441    #                               you simply want the machine in a desired
442    #                               state.  The default value is the global
443    #                               value of "${stack_mode}"
444    # quiet                         If this parameter is set to ${1}, this
445    #                               keyword will print only essential
446    #                               information.  The default value is the
447    #                               global value of "${quiet}"
448
449    ${cmd_buf}  Catenate  OBMC Boot Test
450    ...  \ loc_boot_stack=Redfish OBMC Reboot (off)
451    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
452    Run Key U  ${cmd_buf}
453
454
455PDU AC Cycle (run)
456    [Documentation]  Do "PDU AC Cycle (run)" boot test.
457    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
458
459    # Description of argument(s):
460    # stack_mode                    If stack_mode is set to "skip", each test
461    #                               specified in the boot_stack is only
462    #                               performed if the machine is not already in
463    #                               the state that would normally result from
464    #                               running the given boot test.  Otherwise,
465    #                               the test is skipped.  If stack_mode is set
466    #                               to "normal", all tests from the boot_stack
467    #                               are performed.  "skip" mode is useful when
468    #                               you simply want the machine in a desired
469    #                               state.  The default value is the global
470    #                               value of "${stack_mode}"
471    # quiet                         If this parameter is set to ${1}, this
472    #                               keyword will print only essential
473    #                               information.  The default value is the
474    #                               global value of "${quiet}"
475
476    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (run)
477    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
478    Run Key U  ${cmd_buf}
479
480
481PDU AC Cycle (off)
482    [Documentation]  Do "PDU AC Cycle (off)" boot test.
483    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
484
485    # Description of argument(s):
486    # stack_mode                    If stack_mode is set to "skip", each test
487    #                               specified in the boot_stack is only
488    #                               performed if the machine is not already in
489    #                               the state that would normally result from
490    #                               running the given boot test.  Otherwise,
491    #                               the test is skipped.  If stack_mode is set
492    #                               to "normal", all tests from the boot_stack
493    #                               are performed.  "skip" mode is useful when
494    #                               you simply want the machine in a desired
495    #                               state.  The default value is the global
496    #                               value of "${stack_mode}"
497    # quiet                         If this parameter is set to ${1}, this
498    #                               keyword will print only essential
499    #                               information.  The default value is the
500    #                               global value of "${quiet}"
501
502    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (off)
503    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
504    Run Key U  ${cmd_buf}
505
506
507IPMI MC Reset Warm (run)
508    [Documentation]  Do "IPMI MC Reset Warm (run)" boot test.
509    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
510
511    # Description of argument(s):
512    # stack_mode                    If stack_mode is set to "skip", each test
513    #                               specified in the boot_stack is only
514    #                               performed if the machine is not already in
515    #                               the state that would normally result from
516    #                               running the given boot test.  Otherwise,
517    #                               the test is skipped.  If stack_mode is set
518    #                               to "normal", all tests from the boot_stack
519    #                               are performed.  "skip" mode is useful when
520    #                               you simply want the machine in a desired
521    #                               state.  The default value is the global
522    #                               value of "${stack_mode}"
523    # quiet                         If this parameter is set to ${1}, this
524    #                               keyword will print only essential
525    #                               information.  The default value is the
526    #                               global value of "${quiet}"
527
528    ${cmd_buf}  Catenate  OBMC Boot Test
529    ...  \ loc_boot_stack=IPMI MC Reset Warm (run)
530    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
531    Run Key U  ${cmd_buf}
532
533
534IPMI MC Reset Warm (off)
535    [Documentation]  Do "IPMI MC Reset Warm (off)" boot test.
536    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
537
538    # Description of argument(s):
539    # stack_mode                    If stack_mode is set to "skip", each test
540    #                               specified in the boot_stack is only
541    #                               performed if the machine is not already in
542    #                               the state that would normally result from
543    #                               running the given boot test.  Otherwise,
544    #                               the test is skipped.  If stack_mode is set
545    #                               to "normal", all tests from the boot_stack
546    #                               are performed.  "skip" mode is useful when
547    #                               you simply want the machine in a desired
548    #                               state.  The default value is the global
549    #                               value of "${stack_mode}"
550    # quiet                         If this parameter is set to ${1}, this
551    #                               keyword will print only essential
552    #                               information.  The default value is the
553    #                               global value of "${quiet}"
554
555    ${cmd_buf}  Catenate  OBMC Boot Test
556    ...  \ loc_boot_stack=IPMI MC Reset Warm (off)
557    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
558    Run Key U  ${cmd_buf}
559
560
561IPMI MC Reset Cold (run)
562    [Documentation]  Do "IPMI MC Reset Cold (run)" boot test.
563    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
564
565    # Description of argument(s):
566    # stack_mode                    If stack_mode is set to "skip", each test
567    #                               specified in the boot_stack is only
568    #                               performed if the machine is not already in
569    #                               the state that would normally result from
570    #                               running the given boot test.  Otherwise,
571    #                               the test is skipped.  If stack_mode is set
572    #                               to "normal", all tests from the boot_stack
573    #                               are performed.  "skip" mode is useful when
574    #                               you simply want the machine in a desired
575    #                               state.  The default value is the global
576    #                               value of "${stack_mode}"
577    # quiet                         If this parameter is set to ${1}, this
578    #                               keyword will print only essential
579    #                               information.  The default value is the
580    #                               global value of "${quiet}"
581
582    ${cmd_buf}  Catenate  OBMC Boot Test
583    ...  \ loc_boot_stack=IPMI MC Reset Cold (run)
584    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
585    Run Key U  ${cmd_buf}
586
587
588IPMI MC Reset Cold (off)
589    [Documentation]  Do "IPMI MC Reset Cold (off)" boot test.
590    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
591
592    # Description of argument(s):
593    # stack_mode                    If stack_mode is set to "skip", each test
594    #                               specified in the boot_stack is only
595    #                               performed if the machine is not already in
596    #                               the state that would normally result from
597    #                               running the given boot test.  Otherwise,
598    #                               the test is skipped.  If stack_mode is set
599    #                               to "normal", all tests from the boot_stack
600    #                               are performed.  "skip" mode is useful when
601    #                               you simply want the machine in a desired
602    #                               state.  The default value is the global
603    #                               value of "${stack_mode}"
604    # quiet                         If this parameter is set to ${1}, this
605    #                               keyword will print only essential
606    #                               information.  The default value is the
607    #                               global value of "${quiet}"
608
609    ${cmd_buf}  Catenate  OBMC Boot Test
610    ...  \ loc_boot_stack=IPMI MC Reset Cold (off)
611    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
612    Run Key U  ${cmd_buf}
613
614
615IPMI Std MC Reset Warm (run)
616    [Documentation]  Do "IPMI Std MC Reset Warm (run)" boot test.
617    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
618
619    # Description of argument(s):
620    # stack_mode                    If stack_mode is set to "skip", each test
621    #                               specified in the boot_stack is only
622    #                               performed if the machine is not already in
623    #                               the state that would normally result from
624    #                               running the given boot test.  Otherwise,
625    #                               the test is skipped.  If stack_mode is set
626    #                               to "normal", all tests from the boot_stack
627    #                               are performed.  "skip" mode is useful when
628    #                               you simply want the machine in a desired
629    #                               state.  The default value is the global
630    #                               value of "${stack_mode}"
631    # quiet                         If this parameter is set to ${1}, this
632    #                               keyword will print only essential
633    #                               information.  The default value is the
634    #                               global value of "${quiet}"
635
636    ${cmd_buf}  Catenate  OBMC Boot Test
637    ...  \ loc_boot_stack=IPMI Std MC Reset Warm (run)
638    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
639    Run Key U  ${cmd_buf}
640
641
642IPMI Std MC Reset Warm (off)
643    [Documentation]  Do "IPMI Std MC Reset Warm (off)" boot test.
644    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
645
646    # Description of argument(s):
647    # stack_mode                    If stack_mode is set to "skip", each test
648    #                               specified in the boot_stack is only
649    #                               performed if the machine is not already in
650    #                               the state that would normally result from
651    #                               running the given boot test.  Otherwise,
652    #                               the test is skipped.  If stack_mode is set
653    #                               to "normal", all tests from the boot_stack
654    #                               are performed.  "skip" mode is useful when
655    #                               you simply want the machine in a desired
656    #                               state.  The default value is the global
657    #                               value of "${stack_mode}"
658    # quiet                         If this parameter is set to ${1}, this
659    #                               keyword will print only essential
660    #                               information.  The default value is the
661    #                               global value of "${quiet}"
662
663    ${cmd_buf}  Catenate  OBMC Boot Test
664    ...  \ loc_boot_stack=IPMI Std MC Reset Warm (off)
665    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
666    Run Key U  ${cmd_buf}
667
668
669IPMI Std MC Reset Cold (run)
670    [Documentation]  Do "IPMI Std MC Reset Cold (run)" boot test.
671    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
672
673    # Description of argument(s):
674    # stack_mode                    If stack_mode is set to "skip", each test
675    #                               specified in the boot_stack is only
676    #                               performed if the machine is not already in
677    #                               the state that would normally result from
678    #                               running the given boot test.  Otherwise,
679    #                               the test is skipped.  If stack_mode is set
680    #                               to "normal", all tests from the boot_stack
681    #                               are performed.  "skip" mode is useful when
682    #                               you simply want the machine in a desired
683    #                               state.  The default value is the global
684    #                               value of "${stack_mode}"
685    # quiet                         If this parameter is set to ${1}, this
686    #                               keyword will print only essential
687    #                               information.  The default value is the
688    #                               global value of "${quiet}"
689
690    ${cmd_buf}  Catenate  OBMC Boot Test
691    ...  \ loc_boot_stack=IPMI Std MC Reset Cold (run)
692    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
693    Run Key U  ${cmd_buf}
694
695
696IPMI Std MC Reset Cold (off)
697    [Documentation]  Do "IPMI Std MC Reset Cold (off)" boot test.
698    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
699
700    # Description of argument(s):
701    # stack_mode                    If stack_mode is set to "skip", each test
702    #                               specified in the boot_stack is only
703    #                               performed if the machine is not already in
704    #                               the state that would normally result from
705    #                               running the given boot test.  Otherwise,
706    #                               the test is skipped.  If stack_mode is set
707    #                               to "normal", all tests from the boot_stack
708    #                               are performed.  "skip" mode is useful when
709    #                               you simply want the machine in a desired
710    #                               state.  The default value is the global
711    #                               value of "${stack_mode}"
712    # quiet                         If this parameter is set to ${1}, this
713    #                               keyword will print only essential
714    #                               information.  The default value is the
715    #                               global value of "${quiet}"
716
717    ${cmd_buf}  Catenate  OBMC Boot Test
718    ...  \ loc_boot_stack=IPMI Std MC Reset Cold (off)
719    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
720    Run Key U  ${cmd_buf}
721
722
723IPMI Power Cycle
724    [Documentation]  Do "IPMI Power Cycle" boot test.
725    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
726
727    # Description of argument(s):
728    # stack_mode                    If stack_mode is set to "skip", each test
729    #                               specified in the boot_stack is only
730    #                               performed if the machine is not already in
731    #                               the state that would normally result from
732    #                               running the given boot test.  Otherwise,
733    #                               the test is skipped.  If stack_mode is set
734    #                               to "normal", all tests from the boot_stack
735    #                               are performed.  "skip" mode is useful when
736    #                               you simply want the machine in a desired
737    #                               state.  The default value is the global
738    #                               value of "${stack_mode}"
739    # quiet                         If this parameter is set to ${1}, this
740    #                               keyword will print only essential
741    #                               information.  The default value is the
742    #                               global value of "${quiet}"
743
744    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power Cycle
745    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
746    Run Key U  ${cmd_buf}
747
748
749IPMI Power Reset
750    [Documentation]  Do "IPMI Power Reset" boot test.
751    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
752
753    # Description of argument(s):
754    # stack_mode                    If stack_mode is set to "skip", each test
755    #                               specified in the boot_stack is only
756    #                               performed if the machine is not already in
757    #                               the state that would normally result from
758    #                               running the given boot test.  Otherwise,
759    #                               the test is skipped.  If stack_mode is set
760    #                               to "normal", all tests from the boot_stack
761    #                               are performed.  "skip" mode is useful when
762    #                               you simply want the machine in a desired
763    #                               state.  The default value is the global
764    #                               value of "${stack_mode}"
765    # quiet                         If this parameter is set to ${1}, this
766    #                               keyword will print only essential
767    #                               information.  The default value is the
768    #                               global value of "${quiet}"
769
770    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power Reset
771    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
772    Run Key U  ${cmd_buf}
773
774
775Auto Reboot
776    [Documentation]  Do "Auto Reboot" boot test.
777    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
778
779    # Description of argument(s):
780    # stack_mode                    If stack_mode is set to "skip", each test
781    #                               specified in the boot_stack is only
782    #                               performed if the machine is not already in
783    #                               the state that would normally result from
784    #                               running the given boot test.  Otherwise,
785    #                               the test is skipped.  If stack_mode is set
786    #                               to "normal", all tests from the boot_stack
787    #                               are performed.  "skip" mode is useful when
788    #                               you simply want the machine in a desired
789    #                               state.  The default value is the global
790    #                               value of "${stack_mode}"
791    # quiet                         If this parameter is set to ${1}, this
792    #                               keyword will print only essential
793    #                               information.  The default value is the
794    #                               global value of "${quiet}"
795
796    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=Auto Reboot
797    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
798    Run Key U  ${cmd_buf}
799
800
801Host Reboot
802    [Documentation]  Do "Host Reboot" boot test.
803    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
804
805    # Description of argument(s):
806    # stack_mode                    If stack_mode is set to "skip", each test
807    #                               specified in the boot_stack is only
808    #                               performed if the machine is not already in
809    #                               the state that would normally result from
810    #                               running the given boot test.  Otherwise,
811    #                               the test is skipped.  If stack_mode is set
812    #                               to "normal", all tests from the boot_stack
813    #                               are performed.  "skip" mode is useful when
814    #                               you simply want the machine in a desired
815    #                               state.  The default value is the global
816    #                               value of "${stack_mode}"
817    # quiet                         If this parameter is set to ${1}, this
818    #                               keyword will print only essential
819    #                               information.  The default value is the
820    #                               global value of "${quiet}"
821
822    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=Host Reboot
823    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
824    Run Key U  ${cmd_buf}
825
826
827RF SYS GracefulRestart
828    [Documentation]  Do "RF SYS GracefulRestart" boot test.
829    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
830
831    # Description of argument(s):
832    # stack_mode                    If stack_mode is set to "skip", each test
833    #                               specified in the boot_stack is only
834    #                               performed if the machine is not already in
835    #                               the state that would normally result from
836    #                               running the given boot test.  Otherwise,
837    #                               the test is skipped.  If stack_mode is set
838    #                               to "normal", all tests from the boot_stack
839    #                               are performed.  "skip" mode is useful when
840    #                               you simply want the machine in a desired
841    #                               state.  The default value is the global
842    #                               value of "${stack_mode}"
843    # quiet                         If this parameter is set to ${1}, this
844    #                               keyword will print only essential
845    #                               information.  The default value is the
846    #                               global value of "${quiet}"
847
848    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=RF SYS GracefulRestart
849    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
850    Run Key U  ${cmd_buf}
851
852
853RF SYS ForceRestart
854    [Documentation]  Do "RF SYS ForceRestart" boot test.
855    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
856
857    # Description of argument(s):
858    # stack_mode                    If stack_mode is set to "skip", each test
859    #                               specified in the boot_stack is only
860    #                               performed if the machine is not already in
861    #                               the state that would normally result from
862    #                               running the given boot test.  Otherwise,
863    #                               the test is skipped.  If stack_mode is set
864    #                               to "normal", all tests from the boot_stack
865    #                               are performed.  "skip" mode is useful when
866    #                               you simply want the machine in a desired
867    #                               state.  The default value is the global
868    #                               value of "${stack_mode}"
869    # quiet                         If this parameter is set to ${1}, this
870    #                               keyword will print only essential
871    #                               information.  The default value is the
872    #                               global value of "${quiet}"
873
874    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=RF SYS ForceRestart
875    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
876    Run Key U  ${cmd_buf}
877
878
879Tool Initd MP Reboot
880    [Documentation]  Do "Initd MP reboot" boot test.
881    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
882
883    # Description of argument(s):
884    # stack_mode                    If stack_mode is set to "skip", each test
885    #                               specified in the boot_stack is only
886    #                               performed if the machine is not already in
887    #                               the state that would normally result from
888    #                               running the given boot test.  Otherwise,
889    #                               the test is skipped.  If stack_mode is set
890    #                               to "normal", all tests from the boot_stack
891    #                               are performed.  "skip" mode is useful when
892    #                               you simply want the machine in a desired
893    #                               state.  The default value is the global
894    #                               value of "${stack_mode}"
895    # quiet                         If this parameter is set to ${1}, this
896    #                               keyword will print only essential
897    #                               information.  The default value is the
898    #                               global value of "${quiet}"
899
900    ${cmd_buf}  Catenate  OBMC Boot Test
901    ...  \ loc_boot_stack=Tool Initd MP Reboot
902    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
903    Run Key U  ${cmd_buf}
904
905
906Smart Power Off
907    [Documentation]  Do a smart power off.
908    [Arguments]  ${quiet}=${QUIET}
909
910    # A 'Smart Power Off' consists of a 'REST Power Off' with recovery.
911    # Namely, if the 'REST Power Off' fails, a 'REST Hard Power Off' will
912    # be attempted.
913
914    # Description of argument(s):
915    # quiet                         If this parameter is set to ${1}, this
916    #                               keyword will print only essential
917    #                               information.  The default value is the
918    #                               global value of "${quiet}"
919
920
921    # OBMC Boot Test will restore global quiet to initial global value.
922    # Unfortunately, that restore affects our local quiet so we must
923    # preserve it.
924    ${loc_quiet}=  Set Variable  ${quiet}
925    ${cmd_buf}=  Catenate  REST Power Off \ stack_mode=skip
926    ...  \ \ quiet=${loc_quiet}
927    ${status}  ${ret_values}=  Run Key U  ${cmd_buf}  ignore=${1}
928    ...  quiet=${loc_quiet}
929
930    Run Keyword If  '${status}' == 'PASS'  Return From Keyword
931
932    ${cmd_buf}=  Catenate  REST Hard Power Off \ stack_mode=skip
933    ...  \ \ quiet=${loc_quiet}
934    Run Key U  ${cmd_buf}  quiet=${loc_quiet}
935
936