blob: 6a2a8b45af0e0f110bce5bc9bcde5aebfddda550 [file] [log] [blame]
Michael Walsh800b3922017-05-05 15:30:30 -05001*** 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 ***
Michael Walsh800b3922017-05-05 15:30:30 -05008REST Power On
9 [Documentation] Do "REST Power On" boot test.
Michael Walshff340002017-08-29 11:18:27 -050010 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -050011
Michael Walshff340002017-08-29 11:18:27 -050012 # 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}
Michael Walsh800b3922017-05-05 15:30:30 -050032
Michael Walsh800b3922017-05-05 15:30:30 -050033
Michael Walsh287a0032019-02-14 18:00:20 -060034Redfish 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
Michael Walsh800b3922017-05-05 15:30:30 -050060IPMI Power On
61 [Documentation] Do "IPMI Power On" boot test.
Michael Walshff340002017-08-29 11:18:27 -050062 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -050063
Michael Walshff340002017-08-29 11:18:27 -050064 # 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}
Michael Walsh800b3922017-05-05 15:30:30 -050084
Michael Walsh800b3922017-05-05 15:30:30 -050085
Michael Walsh800b3922017-05-05 15:30:30 -050086REST Power Off
87 [Documentation] Do "REST Power Off" boot test.
Michael Walshff340002017-08-29 11:18:27 -050088 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -050089
Michael Walshff340002017-08-29 11:18:27 -050090 # 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}
Michael Walsh800b3922017-05-05 15:30:30 -0500110
Michael Walsh800b3922017-05-05 15:30:30 -0500111
Michael Walsh287a0032019-02-14 18:00:20 -0600112Redfish 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
Michael Walsh245db7c2017-09-05 15:45:03 -0500138REST 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
Michael Walsh245db7c2017-09-05 15:45:03 -0500163
Michael Walsh287a0032019-02-14 18:00:20 -0600164Redfish 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
Michael Walsh800b3922017-05-05 15:30:30 -0500191IPMI Power Off
192 [Documentation] Do "IPMI Power Off" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500193 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500194
Michael Walshff340002017-08-29 11:18:27 -0500195 # 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}
Michael Walsh800b3922017-05-05 15:30:30 -0500215
Michael Walsh800b3922017-05-05 15:30:30 -0500216
Michael Walsh800b3922017-05-05 15:30:30 -0500217IPMI Power Soft
218 [Documentation] Do "IPMI Power Soft" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500219 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500220
Michael Walshff340002017-08-29 11:18:27 -0500221 # 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}
Michael Walsh800b3922017-05-05 15:30:30 -0500241
Michael Walsh800b3922017-05-05 15:30:30 -0500242
Michael Walsh800b3922017-05-05 15:30:30 -0500243Host Power Off
244 [Documentation] Do "Host Power Off" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500245 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500246
Michael Walshff340002017-08-29 11:18:27 -0500247 # 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}
Michael Walsh800b3922017-05-05 15:30:30 -0500267
Michael Walsh800b3922017-05-05 15:30:30 -0500268
Michael Walsh800b3922017-05-05 15:30:30 -0500269APOR
270 [Documentation] Do "APOR" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500271 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500272
Michael Walshff340002017-08-29 11:18:27 -0500273 # 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}
Michael Walsh800b3922017-05-05 15:30:30 -0500293
Michael Walsh800b3922017-05-05 15:30:30 -0500294
Michael Walsh800b3922017-05-05 15:30:30 -0500295OBMC Reboot (run)
296 [Documentation] Do "OBMC Reboot (run)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500297 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500298
Michael Walshff340002017-08-29 11:18:27 -0500299 # 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}
Michael Walsh800b3922017-05-05 15:30:30 -0500319
Michael Walsh03e63392017-10-02 09:47:41 -0500320
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}
Michael Walsh800b3922017-05-05 15:30:30 -0500346
347
Michael Walsh800b3922017-05-05 15:30:30 -0500348OBMC Reboot (off)
349 [Documentation] Do "OBMC Reboot (off)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500350 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500351
Michael Walshff340002017-08-29 11:18:27 -0500352 # 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 \ loc_boot_stack=OBMC Reboot (off)
370 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
371 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500372
Michael Walsh03e63392017-10-02 09:47:41 -0500373
374REST OBMC Reboot (off)
375 [Documentation] Do "REST OBMC Reboot (off)" boot test.
376 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
377
378 # Description of argument(s):
379 # stack_mode If stack_mode is set to "skip", each test
380 # specified in the boot_stack is only
381 # performed if the machine is not already in
382 # the state that would normally result from
383 # running the given boot test. Otherwise,
384 # the test is skipped. If stack_mode is set
385 # to "normal", all tests from the boot_stack
386 # are performed. "skip" mode is useful when
387 # you simply want the machine in a desired
388 # state. The default value is the global
389 # value of "${stack_mode}"
390 # quiet If this parameter is set to ${1}, this
391 # keyword will print only essential
392 # information. The default value is the
393 # global value of "${quiet}"
394
395 ${cmd_buf} Catenate OBMC Boot Test
396 ... \ loc_boot_stack=REST OBMC Reboot (off)
397 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
398 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500399
400
Michael Walsh800b3922017-05-05 15:30:30 -0500401PDU AC Cycle (run)
402 [Documentation] Do "PDU AC Cycle (run)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500403 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500404
Michael Walshff340002017-08-29 11:18:27 -0500405 # 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 \ loc_boot_stack=PDU AC Cycle (run)
423 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
424 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500425
Michael Walsh800b3922017-05-05 15:30:30 -0500426
Michael Walsh800b3922017-05-05 15:30:30 -0500427PDU AC Cycle (off)
428 [Documentation] Do "PDU AC Cycle (off)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500429 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500430
Michael Walshff340002017-08-29 11:18:27 -0500431 # Description of argument(s):
432 # stack_mode If stack_mode is set to "skip", each test
433 # specified in the boot_stack is only
434 # performed if the machine is not already in
435 # the state that would normally result from
436 # running the given boot test. Otherwise,
437 # the test is skipped. If stack_mode is set
438 # to "normal", all tests from the boot_stack
439 # are performed. "skip" mode is useful when
440 # you simply want the machine in a desired
441 # state. The default value is the global
442 # value of "${stack_mode}"
443 # quiet If this parameter is set to ${1}, this
444 # keyword will print only essential
445 # information. The default value is the
446 # global value of "${quiet}"
447
448 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (off)
449 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
450 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500451
Michael Walsh800b3922017-05-05 15:30:30 -0500452
Michael Walsh800b3922017-05-05 15:30:30 -0500453IPMI MC Reset Warm (run)
454 [Documentation] Do "IPMI MC Reset Warm (run)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500455 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500456
Michael Walshff340002017-08-29 11:18:27 -0500457 # Description of argument(s):
458 # stack_mode If stack_mode is set to "skip", each test
459 # specified in the boot_stack is only
460 # performed if the machine is not already in
461 # the state that would normally result from
462 # running the given boot test. Otherwise,
463 # the test is skipped. If stack_mode is set
464 # to "normal", all tests from the boot_stack
465 # are performed. "skip" mode is useful when
466 # you simply want the machine in a desired
467 # state. The default value is the global
468 # value of "${stack_mode}"
469 # quiet If this parameter is set to ${1}, this
470 # keyword will print only essential
471 # information. The default value is the
472 # global value of "${quiet}"
473
474 ${cmd_buf} Catenate OBMC Boot Test
475 ... \ loc_boot_stack=IPMI MC Reset Warm (run)
476 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
477 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500478
Michael Walsh800b3922017-05-05 15:30:30 -0500479
Michael Walsh800b3922017-05-05 15:30:30 -0500480IPMI MC Reset Warm (off)
481 [Documentation] Do "IPMI MC Reset Warm (off)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500482 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500483
Michael Walshff340002017-08-29 11:18:27 -0500484 # Description of argument(s):
485 # stack_mode If stack_mode is set to "skip", each test
486 # specified in the boot_stack is only
487 # performed if the machine is not already in
488 # the state that would normally result from
489 # running the given boot test. Otherwise,
490 # the test is skipped. If stack_mode is set
491 # to "normal", all tests from the boot_stack
492 # are performed. "skip" mode is useful when
493 # you simply want the machine in a desired
494 # state. The default value is the global
495 # value of "${stack_mode}"
496 # quiet If this parameter is set to ${1}, this
497 # keyword will print only essential
498 # information. The default value is the
499 # global value of "${quiet}"
500
501 ${cmd_buf} Catenate OBMC Boot Test
502 ... \ loc_boot_stack=IPMI MC Reset Warm (off)
503 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
504 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500505
Michael Walsh800b3922017-05-05 15:30:30 -0500506
Michael Walsh55b5c642018-03-16 14:21:13 -0500507IPMI MC Reset Cold (run)
508 [Documentation] Do "IPMI MC Reset Cold (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 Cold (run)
530 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
531 Run Key U ${cmd_buf}
532
533
534IPMI MC Reset Cold (off)
535 [Documentation] Do "IPMI MC Reset Cold (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 Cold (off)
557 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
558 Run Key U ${cmd_buf}
559
560
561IPMI Std MC Reset Warm (run)
562 [Documentation] Do "IPMI Std MC Reset Warm (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 Std MC Reset Warm (run)
584 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
585 Run Key U ${cmd_buf}
586
587
588IPMI Std MC Reset Warm (off)
589 [Documentation] Do "IPMI Std MC Reset Warm (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 Std MC Reset Warm (off)
611 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
612 Run Key U ${cmd_buf}
613
614
615IPMI Std MC Reset Cold (run)
616 [Documentation] Do "IPMI Std MC Reset Cold (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 Cold (run)
638 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
639 Run Key U ${cmd_buf}
640
641
642IPMI Std MC Reset Cold (off)
643 [Documentation] Do "IPMI Std MC Reset Cold (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 Cold (off)
665 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
666 Run Key U ${cmd_buf}
667
668
Michael Walsh800b3922017-05-05 15:30:30 -0500669IPMI Power Cycle
670 [Documentation] Do "IPMI Power Cycle" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500671 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500672
Michael Walshff340002017-08-29 11:18:27 -0500673 # 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 \ loc_boot_stack=IPMI Power Cycle
691 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
692 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500693
Michael Walsh800b3922017-05-05 15:30:30 -0500694
Michael Walsh800b3922017-05-05 15:30:30 -0500695IPMI Power Reset
696 [Documentation] Do "IPMI Power Reset" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500697 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500698
Michael Walshff340002017-08-29 11:18:27 -0500699 # Description of argument(s):
700 # stack_mode If stack_mode is set to "skip", each test
701 # specified in the boot_stack is only
702 # performed if the machine is not already in
703 # the state that would normally result from
704 # running the given boot test. Otherwise,
705 # the test is skipped. If stack_mode is set
706 # to "normal", all tests from the boot_stack
707 # are performed. "skip" mode is useful when
708 # you simply want the machine in a desired
709 # state. The default value is the global
710 # value of "${stack_mode}"
711 # quiet If this parameter is set to ${1}, this
712 # keyword will print only essential
713 # information. The default value is the
714 # global value of "${quiet}"
715
716 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Reset
717 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
718 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500719
Michael Walsh800b3922017-05-05 15:30:30 -0500720
Michael Walsh800b3922017-05-05 15:30:30 -0500721Auto Reboot
722 [Documentation] Do "Auto Reboot" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500723 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500724
Michael Walshff340002017-08-29 11:18:27 -0500725 # Description of argument(s):
726 # stack_mode If stack_mode is set to "skip", each test
727 # specified in the boot_stack is only
728 # performed if the machine is not already in
729 # the state that would normally result from
730 # running the given boot test. Otherwise,
731 # the test is skipped. If stack_mode is set
732 # to "normal", all tests from the boot_stack
733 # are performed. "skip" mode is useful when
734 # you simply want the machine in a desired
735 # state. The default value is the global
736 # value of "${stack_mode}"
737 # quiet If this parameter is set to ${1}, this
738 # keyword will print only essential
739 # information. The default value is the
740 # global value of "${quiet}"
741
742 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Auto Reboot
743 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
744 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500745
Michael Walsh800b3922017-05-05 15:30:30 -0500746
Michael Walsh800b3922017-05-05 15:30:30 -0500747Host Reboot
748 [Documentation] Do "Host Reboot" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500749 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500750
Michael Walshff340002017-08-29 11:18:27 -0500751 # Description of argument(s):
752 # stack_mode If stack_mode is set to "skip", each test
753 # specified in the boot_stack is only
754 # performed if the machine is not already in
755 # the state that would normally result from
756 # running the given boot test. Otherwise,
757 # the test is skipped. If stack_mode is set
758 # to "normal", all tests from the boot_stack
759 # are performed. "skip" mode is useful when
760 # you simply want the machine in a desired
761 # state. The default value is the global
762 # value of "${stack_mode}"
763 # quiet If this parameter is set to ${1}, this
764 # keyword will print only essential
765 # information. The default value is the
766 # global value of "${quiet}"
767
768 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Host Reboot
769 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
770 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500771
Michael Walsh800b3922017-05-05 15:30:30 -0500772
Michael Walsh287a0032019-02-14 18:00:20 -0600773Redfish Host Reboot
774 [Documentation] Do "Redfish Host Reboot" boot test.
775 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
776
777 # Description of argument(s):
778 # stack_mode If stack_mode is set to "skip", each test
779 # specified in the boot_stack is only
780 # performed if the machine is not already in
781 # the state that would normally result from
782 # running the given boot test. Otherwise,
783 # the test is skipped. If stack_mode is set
784 # to "normal", all tests from the boot_stack
785 # are performed. "skip" mode is useful when
786 # you simply want the machine in a desired
787 # state. The default value is the global
788 # value of "${stack_mode}"
789 # quiet If this parameter is set to ${1}, this
790 # keyword will print only essential
791 # information. The default value is the
792 # global value of "${quiet}"
793
794 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Redfish Host Reboot
795 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
796 Run Key U ${cmd_buf}
797
798
Michael Walshc28c2392017-09-07 14:17:43 -0500799Smart Power Off
800 [Documentation] Do a smart power off.
801 [Arguments] ${quiet}=${QUIET}
802
803 # A 'Smart Power Off' consists of a 'REST Power Off' with recovery.
804 # Namely, if the 'REST Power Off' fails, a 'REST Hard Power Off' will
805 # be attempted.
806
807 # Description of argument(s):
808 # quiet If this parameter is set to ${1}, this
809 # keyword will print only essential
810 # information. The default value is the
811 # global value of "${quiet}"
812
813
814 # OBMC Boot Test will restore global quiet to initial global value.
815 # Unfortunately, that restore affects our local quiet so we must
816 # preserve it.
817 ${loc_quiet}= Set Variable ${quiet}
818 ${cmd_buf}= Catenate REST Power Off \ stack_mode=skip
819 ... \ \ quiet=${loc_quiet}
820 ${status} ${ret_values}= Run Key U ${cmd_buf} ignore=${1}
821 ... quiet=${loc_quiet}
822
823 Run Keyword If '${status}' == 'PASS' Return From Keyword
824
825 ${cmd_buf}= Catenate REST Hard Power Off \ stack_mode=skip
826 ... \ \ quiet=${loc_quiet}
827 Run Key U ${cmd_buf} quiet=${loc_quiet}
828