blob: fd417379a8ca6a7c6621cc19cf9224747e510efd [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 Walsh800b3922017-05-05 15:30:30 -050034IPMI Power On
35 [Documentation] Do "IPMI Power On" boot test.
Michael Walshff340002017-08-29 11:18:27 -050036 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -050037
Michael Walshff340002017-08-29 11:18:27 -050038 # 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=IPMI Power On
56 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
57 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -050058
Michael Walsh800b3922017-05-05 15:30:30 -050059
Michael Walsh800b3922017-05-05 15:30:30 -050060REST Power Off
61 [Documentation] Do "REST Power Off" 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=REST Power Off
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 Walsh245db7c2017-09-05 15:45:03 -050086REST Hard Power Off
87 [Documentation] Do "REST Hard 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 Hard Power Off
108 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
109 Run Key U ${cmd_buf}
110
Michael Walsh245db7c2017-09-05 15:45:03 -0500111
Michael Walsh800b3922017-05-05 15:30:30 -0500112IPMI Power Off
113 [Documentation] Do "IPMI Power Off" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500114 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500115
Michael Walshff340002017-08-29 11:18:27 -0500116 # 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=IPMI Power Off
134 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
135 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500136
Michael Walsh800b3922017-05-05 15:30:30 -0500137
Michael Walsh800b3922017-05-05 15:30:30 -0500138IPMI Power Soft
139 [Documentation] Do "IPMI Power Soft" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500140 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500141
Michael Walshff340002017-08-29 11:18:27 -0500142 # 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=IPMI Power Soft
160 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
161 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500162
Michael Walsh800b3922017-05-05 15:30:30 -0500163
Michael Walsh800b3922017-05-05 15:30:30 -0500164Host Power Off
165 [Documentation] Do "Host Power Off" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500166 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500167
Michael Walshff340002017-08-29 11:18:27 -0500168 # 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 \ loc_boot_stack=Host Power Off
186 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
187 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500188
Michael Walsh800b3922017-05-05 15:30:30 -0500189
Michael Walsh800b3922017-05-05 15:30:30 -0500190APOR
191 [Documentation] Do "APOR" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500192 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500193
Michael Walshff340002017-08-29 11:18:27 -0500194 # Description of argument(s):
195 # stack_mode If stack_mode is set to "skip", each test
196 # specified in the boot_stack is only
197 # performed if the machine is not already in
198 # the state that would normally result from
199 # running the given boot test. Otherwise,
200 # the test is skipped. If stack_mode is set
201 # to "normal", all tests from the boot_stack
202 # are performed. "skip" mode is useful when
203 # you simply want the machine in a desired
204 # state. The default value is the global
205 # value of "${stack_mode}"
206 # quiet If this parameter is set to ${1}, this
207 # keyword will print only essential
208 # information. The default value is the
209 # global value of "${quiet}"
210
211 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=APOR
212 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
213 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500214
Michael Walsh800b3922017-05-05 15:30:30 -0500215
Michael Walsh800b3922017-05-05 15:30:30 -0500216OBMC Reboot (run)
217 [Documentation] Do "OBMC Reboot (run)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500218 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500219
Michael Walshff340002017-08-29 11:18:27 -0500220 # Description of argument(s):
221 # stack_mode If stack_mode is set to "skip", each test
222 # specified in the boot_stack is only
223 # performed if the machine is not already in
224 # the state that would normally result from
225 # running the given boot test. Otherwise,
226 # the test is skipped. If stack_mode is set
227 # to "normal", all tests from the boot_stack
228 # are performed. "skip" mode is useful when
229 # you simply want the machine in a desired
230 # state. The default value is the global
231 # value of "${stack_mode}"
232 # quiet If this parameter is set to ${1}, this
233 # keyword will print only essential
234 # information. The default value is the
235 # global value of "${quiet}"
236
237 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=OBMC Reboot (run)
238 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
239 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500240
Michael Walsh03e63392017-10-02 09:47:41 -0500241
242REST OBMC Reboot (run)
243 [Documentation] Do "REST OBMC Reboot (run)" boot test.
244 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
245
246 # Description of argument(s):
247 # stack_mode If stack_mode is set to "skip", each test
248 # specified in the boot_stack is only
249 # performed if the machine is not already in
250 # the state that would normally result from
251 # running the given boot test. Otherwise,
252 # the test is skipped. If stack_mode is set
253 # to "normal", all tests from the boot_stack
254 # are performed. "skip" mode is useful when
255 # you simply want the machine in a desired
256 # state. The default value is the global
257 # value of "${stack_mode}"
258 # quiet If this parameter is set to ${1}, this
259 # keyword will print only essential
260 # information. The default value is the
261 # global value of "${quiet}"
262
263 ${cmd_buf} Catenate OBMC Boot Test
264 ... \ loc_boot_stack=REST OBMC Reboot (run)
265 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
266 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500267
268
Michael Walsh800b3922017-05-05 15:30:30 -0500269OBMC Reboot (off)
270 [Documentation] Do "OBMC Reboot (off)" 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=OBMC Reboot (off)
291 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
292 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500293
Michael Walsh03e63392017-10-02 09:47:41 -0500294
295REST OBMC Reboot (off)
296 [Documentation] Do "REST OBMC Reboot (off)" 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
317 ... \ loc_boot_stack=REST OBMC Reboot (off)
318 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
319 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500320
321
Michael Walsh800b3922017-05-05 15:30:30 -0500322PDU AC Cycle (run)
323 [Documentation] Do "PDU AC Cycle (run)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500324 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500325
Michael Walshff340002017-08-29 11:18:27 -0500326 # Description of argument(s):
327 # stack_mode If stack_mode is set to "skip", each test
328 # specified in the boot_stack is only
329 # performed if the machine is not already in
330 # the state that would normally result from
331 # running the given boot test. Otherwise,
332 # the test is skipped. If stack_mode is set
333 # to "normal", all tests from the boot_stack
334 # are performed. "skip" mode is useful when
335 # you simply want the machine in a desired
336 # state. The default value is the global
337 # value of "${stack_mode}"
338 # quiet If this parameter is set to ${1}, this
339 # keyword will print only essential
340 # information. The default value is the
341 # global value of "${quiet}"
342
343 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (run)
344 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
345 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500346
Michael Walsh800b3922017-05-05 15:30:30 -0500347
Michael Walsh800b3922017-05-05 15:30:30 -0500348PDU AC Cycle (off)
349 [Documentation] Do "PDU AC Cycle (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=PDU AC Cycle (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 Walsh800b3922017-05-05 15:30:30 -0500373
Michael Walsh800b3922017-05-05 15:30:30 -0500374IPMI MC Reset Warm (run)
375 [Documentation] Do "IPMI MC Reset Warm (run)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500376 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500377
Michael Walshff340002017-08-29 11:18:27 -0500378 # 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=IPMI MC Reset Warm (run)
397 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
398 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500399
Michael Walsh800b3922017-05-05 15:30:30 -0500400
Michael Walsh800b3922017-05-05 15:30:30 -0500401IPMI MC Reset Warm (off)
402 [Documentation] Do "IPMI MC Reset Warm (off)" 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
423 ... \ loc_boot_stack=IPMI MC Reset Warm (off)
424 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
425 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500426
Michael Walsh800b3922017-05-05 15:30:30 -0500427
Michael Walsh55b5c642018-03-16 14:21:13 -0500428IPMI MC Reset Cold (run)
429 [Documentation] Do "IPMI MC Reset Cold (run)" 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=IPMI MC Reset Cold (run)
451 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
452 Run Key U ${cmd_buf}
453
454
455IPMI MC Reset Cold (off)
456 [Documentation] Do "IPMI MC Reset Cold (off)" 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
477 ... \ loc_boot_stack=IPMI MC Reset Cold (off)
478 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
479 Run Key U ${cmd_buf}
480
481
482IPMI Std MC Reset Warm (run)
483 [Documentation] Do "IPMI Std MC Reset Warm (run)" boot test.
484 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
485
486 # Description of argument(s):
487 # stack_mode If stack_mode is set to "skip", each test
488 # specified in the boot_stack is only
489 # performed if the machine is not already in
490 # the state that would normally result from
491 # running the given boot test. Otherwise,
492 # the test is skipped. If stack_mode is set
493 # to "normal", all tests from the boot_stack
494 # are performed. "skip" mode is useful when
495 # you simply want the machine in a desired
496 # state. The default value is the global
497 # value of "${stack_mode}"
498 # quiet If this parameter is set to ${1}, this
499 # keyword will print only essential
500 # information. The default value is the
501 # global value of "${quiet}"
502
503 ${cmd_buf} Catenate OBMC Boot Test
504 ... \ loc_boot_stack=IPMI Std MC Reset Warm (run)
505 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
506 Run Key U ${cmd_buf}
507
508
509IPMI Std MC Reset Warm (off)
510 [Documentation] Do "IPMI Std MC Reset Warm (off)" boot test.
511 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
512
513 # Description of argument(s):
514 # stack_mode If stack_mode is set to "skip", each test
515 # specified in the boot_stack is only
516 # performed if the machine is not already in
517 # the state that would normally result from
518 # running the given boot test. Otherwise,
519 # the test is skipped. If stack_mode is set
520 # to "normal", all tests from the boot_stack
521 # are performed. "skip" mode is useful when
522 # you simply want the machine in a desired
523 # state. The default value is the global
524 # value of "${stack_mode}"
525 # quiet If this parameter is set to ${1}, this
526 # keyword will print only essential
527 # information. The default value is the
528 # global value of "${quiet}"
529
530 ${cmd_buf} Catenate OBMC Boot Test
531 ... \ loc_boot_stack=IPMI Std MC Reset Warm (off)
532 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
533 Run Key U ${cmd_buf}
534
535
536IPMI Std MC Reset Cold (run)
537 [Documentation] Do "IPMI Std MC Reset Cold (run)" boot test.
538 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
539
540 # Description of argument(s):
541 # stack_mode If stack_mode is set to "skip", each test
542 # specified in the boot_stack is only
543 # performed if the machine is not already in
544 # the state that would normally result from
545 # running the given boot test. Otherwise,
546 # the test is skipped. If stack_mode is set
547 # to "normal", all tests from the boot_stack
548 # are performed. "skip" mode is useful when
549 # you simply want the machine in a desired
550 # state. The default value is the global
551 # value of "${stack_mode}"
552 # quiet If this parameter is set to ${1}, this
553 # keyword will print only essential
554 # information. The default value is the
555 # global value of "${quiet}"
556
557 ${cmd_buf} Catenate OBMC Boot Test
558 ... \ loc_boot_stack=IPMI Std MC Reset Cold (run)
559 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
560 Run Key U ${cmd_buf}
561
562
563IPMI Std MC Reset Cold (off)
564 [Documentation] Do "IPMI Std MC Reset Cold (off)" boot test.
565 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
566
567 # Description of argument(s):
568 # stack_mode If stack_mode is set to "skip", each test
569 # specified in the boot_stack is only
570 # performed if the machine is not already in
571 # the state that would normally result from
572 # running the given boot test. Otherwise,
573 # the test is skipped. If stack_mode is set
574 # to "normal", all tests from the boot_stack
575 # are performed. "skip" mode is useful when
576 # you simply want the machine in a desired
577 # state. The default value is the global
578 # value of "${stack_mode}"
579 # quiet If this parameter is set to ${1}, this
580 # keyword will print only essential
581 # information. The default value is the
582 # global value of "${quiet}"
583
584 ${cmd_buf} Catenate OBMC Boot Test
585 ... \ loc_boot_stack=IPMI Std MC Reset Cold (off)
586 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
587 Run Key U ${cmd_buf}
588
589
Michael Walsh800b3922017-05-05 15:30:30 -0500590IPMI Power Cycle
591 [Documentation] Do "IPMI Power Cycle" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500592 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500593
Michael Walshff340002017-08-29 11:18:27 -0500594 # Description of argument(s):
595 # stack_mode If stack_mode is set to "skip", each test
596 # specified in the boot_stack is only
597 # performed if the machine is not already in
598 # the state that would normally result from
599 # running the given boot test. Otherwise,
600 # the test is skipped. If stack_mode is set
601 # to "normal", all tests from the boot_stack
602 # are performed. "skip" mode is useful when
603 # you simply want the machine in a desired
604 # state. The default value is the global
605 # value of "${stack_mode}"
606 # quiet If this parameter is set to ${1}, this
607 # keyword will print only essential
608 # information. The default value is the
609 # global value of "${quiet}"
610
611 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Cycle
612 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
613 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500614
Michael Walsh800b3922017-05-05 15:30:30 -0500615
Michael Walsh800b3922017-05-05 15:30:30 -0500616IPMI Power Reset
617 [Documentation] Do "IPMI Power Reset" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500618 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500619
Michael Walshff340002017-08-29 11:18:27 -0500620 # Description of argument(s):
621 # stack_mode If stack_mode is set to "skip", each test
622 # specified in the boot_stack is only
623 # performed if the machine is not already in
624 # the state that would normally result from
625 # running the given boot test. Otherwise,
626 # the test is skipped. If stack_mode is set
627 # to "normal", all tests from the boot_stack
628 # are performed. "skip" mode is useful when
629 # you simply want the machine in a desired
630 # state. The default value is the global
631 # value of "${stack_mode}"
632 # quiet If this parameter is set to ${1}, this
633 # keyword will print only essential
634 # information. The default value is the
635 # global value of "${quiet}"
636
637 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Reset
638 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
639 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500640
Michael Walsh800b3922017-05-05 15:30:30 -0500641
Michael Walsh800b3922017-05-05 15:30:30 -0500642Auto Reboot
643 [Documentation] Do "Auto Reboot" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500644 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500645
Michael Walshff340002017-08-29 11:18:27 -0500646 # 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 \ loc_boot_stack=Auto Reboot
664 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
665 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500666
Michael Walsh800b3922017-05-05 15:30:30 -0500667
Michael Walsh800b3922017-05-05 15:30:30 -0500668Host Reboot
669 [Documentation] Do "Host Reboot" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500670 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500671
Michael Walshff340002017-08-29 11:18:27 -0500672 # Description of argument(s):
673 # stack_mode If stack_mode is set to "skip", each test
674 # specified in the boot_stack is only
675 # performed if the machine is not already in
676 # the state that would normally result from
677 # running the given boot test. Otherwise,
678 # the test is skipped. If stack_mode is set
679 # to "normal", all tests from the boot_stack
680 # are performed. "skip" mode is useful when
681 # you simply want the machine in a desired
682 # state. The default value is the global
683 # value of "${stack_mode}"
684 # quiet If this parameter is set to ${1}, this
685 # keyword will print only essential
686 # information. The default value is the
687 # global value of "${quiet}"
688
689 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Host Reboot
690 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
691 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500692
Michael Walsh800b3922017-05-05 15:30:30 -0500693
Michael Walshc28c2392017-09-07 14:17:43 -0500694Smart Power Off
695 [Documentation] Do a smart power off.
696 [Arguments] ${quiet}=${QUIET}
697
698 # A 'Smart Power Off' consists of a 'REST Power Off' with recovery.
699 # Namely, if the 'REST Power Off' fails, a 'REST Hard Power Off' will
700 # be attempted.
701
702 # Description of argument(s):
703 # quiet If this parameter is set to ${1}, this
704 # keyword will print only essential
705 # information. The default value is the
706 # global value of "${quiet}"
707
708
709 # OBMC Boot Test will restore global quiet to initial global value.
710 # Unfortunately, that restore affects our local quiet so we must
711 # preserve it.
712 ${loc_quiet}= Set Variable ${quiet}
713 ${cmd_buf}= Catenate REST Power Off \ stack_mode=skip
714 ... \ \ quiet=${loc_quiet}
715 ${status} ${ret_values}= Run Key U ${cmd_buf} ignore=${1}
716 ... quiet=${loc_quiet}
717
718 Run Keyword If '${status}' == 'PASS' Return From Keyword
719
720 ${cmd_buf}= Catenate REST Hard Power Off \ stack_mode=skip
721 ... \ \ quiet=${loc_quiet}
722 Run Key U ${cmd_buf} quiet=${loc_quiet}
723