xref: /openbmc/openbmc-test-automation/lib/boot_utils.robot (revision 55b5c6441d5e2745debf0ea2b2f818387df4fb30)
1800b3922SMichael Walsh*** Settings ***
2800b3922SMichael WalshDocumentation  This module provides one wrapper keyword for each kind of boot
3800b3922SMichael Walsh...            test supported by obmc_boot_test.py.
4800b3922SMichael Walsh
5800b3922SMichael WalshResource  ../extended/obmc_boot_test_resource.robot
6800b3922SMichael Walsh
7800b3922SMichael Walsh*** Keywords ***
8800b3922SMichael WalshREST Power On
9800b3922SMichael Walsh    [Documentation]  Do "REST Power On" boot test.
10ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
11800b3922SMichael Walsh
12ff340006SMichael Walsh    # Description of argument(s):
13ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
14ff340006SMichael Walsh    #                               specified in the boot_stack is only
15ff340006SMichael Walsh    #                               performed if the machine is not already in
16ff340006SMichael Walsh    #                               the state that would normally result from
17ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
18ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
19ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
20ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
21ff340006SMichael Walsh    #                               you simply want the machine in a desired
22ff340006SMichael Walsh    #                               state.  The default value is the global
23ff340006SMichael Walsh    #                               value of "${stack_mode}"
24ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
25ff340006SMichael Walsh    #                               keyword will print only essential
26ff340006SMichael Walsh    #                               information.  The default value is the
27ff340006SMichael Walsh    #                               global value of "${quiet}"
28ff340006SMichael Walsh
29ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=REST Power On
30ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
31ff340006SMichael Walsh    Run Key U  ${cmd_buf}
32800b3922SMichael Walsh
33800b3922SMichael Walsh
34800b3922SMichael WalshIPMI Power On
35800b3922SMichael Walsh    [Documentation]  Do "IPMI Power On" boot test.
36ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
37800b3922SMichael Walsh
38ff340006SMichael Walsh    # Description of argument(s):
39ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
40ff340006SMichael Walsh    #                               specified in the boot_stack is only
41ff340006SMichael Walsh    #                               performed if the machine is not already in
42ff340006SMichael Walsh    #                               the state that would normally result from
43ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
44ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
45ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
46ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
47ff340006SMichael Walsh    #                               you simply want the machine in a desired
48ff340006SMichael Walsh    #                               state.  The default value is the global
49ff340006SMichael Walsh    #                               value of "${stack_mode}"
50ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
51ff340006SMichael Walsh    #                               keyword will print only essential
52ff340006SMichael Walsh    #                               information.  The default value is the
53ff340006SMichael Walsh    #                               global value of "${quiet}"
54ff340006SMichael Walsh
55ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power On
56ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
57ff340006SMichael Walsh    Run Key U  ${cmd_buf}
58800b3922SMichael Walsh
59800b3922SMichael Walsh
60800b3922SMichael WalshREST Power Off
61800b3922SMichael Walsh    [Documentation]  Do "REST Power Off" boot test.
62ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
63800b3922SMichael Walsh
64ff340006SMichael Walsh    # Description of argument(s):
65ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
66ff340006SMichael Walsh    #                               specified in the boot_stack is only
67ff340006SMichael Walsh    #                               performed if the machine is not already in
68ff340006SMichael Walsh    #                               the state that would normally result from
69ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
70ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
71ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
72ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
73ff340006SMichael Walsh    #                               you simply want the machine in a desired
74ff340006SMichael Walsh    #                               state.  The default value is the global
75ff340006SMichael Walsh    #                               value of "${stack_mode}"
76ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
77ff340006SMichael Walsh    #                               keyword will print only essential
78ff340006SMichael Walsh    #                               information.  The default value is the
79ff340006SMichael Walsh    #                               global value of "${quiet}"
80ff340006SMichael Walsh
81ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=REST Power Off
82ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
83ff340006SMichael Walsh    Run Key U  ${cmd_buf}
84800b3922SMichael Walsh
85800b3922SMichael Walsh
86245db7c3SMichael WalshREST Hard Power Off
87245db7c3SMichael Walsh    [Documentation]  Do "REST Hard Power Off" boot test.
88245db7c3SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
89245db7c3SMichael Walsh
90245db7c3SMichael Walsh    # Description of argument(s):
91245db7c3SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
92245db7c3SMichael Walsh    #                               specified in the boot_stack is only
93245db7c3SMichael Walsh    #                               performed if the machine is not already in
94245db7c3SMichael Walsh    #                               the state that would normally result from
95245db7c3SMichael Walsh    #                               running the given boot test.  Otherwise,
96245db7c3SMichael Walsh    #                               the test is skipped.  If stack_mode is set
97245db7c3SMichael Walsh    #                               to "normal", all tests from the boot_stack
98245db7c3SMichael Walsh    #                               are performed.  "skip" mode is useful when
99245db7c3SMichael Walsh    #                               you simply want the machine in a desired
100245db7c3SMichael Walsh    #                               state.  The default value is the global
101245db7c3SMichael Walsh    #                               value of "${stack_mode}"
102245db7c3SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
103245db7c3SMichael Walsh    #                               keyword will print only essential
104245db7c3SMichael Walsh    #                               information.  The default value is the
105245db7c3SMichael Walsh    #                               global value of "${quiet}"
106245db7c3SMichael Walsh
107245db7c3SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=REST Hard Power Off
108245db7c3SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
109245db7c3SMichael Walsh    Run Key U  ${cmd_buf}
110245db7c3SMichael Walsh
111245db7c3SMichael Walsh
112800b3922SMichael WalshIPMI Power Off
113800b3922SMichael Walsh    [Documentation]  Do "IPMI Power Off" boot test.
114ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
115800b3922SMichael Walsh
116ff340006SMichael Walsh    # Description of argument(s):
117ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
118ff340006SMichael Walsh    #                               specified in the boot_stack is only
119ff340006SMichael Walsh    #                               performed if the machine is not already in
120ff340006SMichael Walsh    #                               the state that would normally result from
121ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
122ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
123ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
124ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
125ff340006SMichael Walsh    #                               you simply want the machine in a desired
126ff340006SMichael Walsh    #                               state.  The default value is the global
127ff340006SMichael Walsh    #                               value of "${stack_mode}"
128ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
129ff340006SMichael Walsh    #                               keyword will print only essential
130ff340006SMichael Walsh    #                               information.  The default value is the
131ff340006SMichael Walsh    #                               global value of "${quiet}"
132ff340006SMichael Walsh
133ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power Off
134ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
135ff340006SMichael Walsh    Run Key U  ${cmd_buf}
136800b3922SMichael Walsh
137800b3922SMichael Walsh
138800b3922SMichael WalshIPMI Power Soft
139800b3922SMichael Walsh    [Documentation]  Do "IPMI Power Soft" boot test.
140ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
141800b3922SMichael Walsh
142ff340006SMichael Walsh    # Description of argument(s):
143ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
144ff340006SMichael Walsh    #                               specified in the boot_stack is only
145ff340006SMichael Walsh    #                               performed if the machine is not already in
146ff340006SMichael Walsh    #                               the state that would normally result from
147ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
148ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
149ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
150ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
151ff340006SMichael Walsh    #                               you simply want the machine in a desired
152ff340006SMichael Walsh    #                               state.  The default value is the global
153ff340006SMichael Walsh    #                               value of "${stack_mode}"
154ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
155ff340006SMichael Walsh    #                               keyword will print only essential
156ff340006SMichael Walsh    #                               information.  The default value is the
157ff340006SMichael Walsh    #                               global value of "${quiet}"
158ff340006SMichael Walsh
159ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power Soft
160ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
161ff340006SMichael Walsh    Run Key U  ${cmd_buf}
162800b3922SMichael Walsh
163800b3922SMichael Walsh
164800b3922SMichael WalshHost Power Off
165800b3922SMichael Walsh    [Documentation]  Do "Host Power Off" boot test.
166ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
167800b3922SMichael Walsh
168ff340006SMichael Walsh    # Description of argument(s):
169ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
170ff340006SMichael Walsh    #                               specified in the boot_stack is only
171ff340006SMichael Walsh    #                               performed if the machine is not already in
172ff340006SMichael Walsh    #                               the state that would normally result from
173ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
174ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
175ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
176ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
177ff340006SMichael Walsh    #                               you simply want the machine in a desired
178ff340006SMichael Walsh    #                               state.  The default value is the global
179ff340006SMichael Walsh    #                               value of "${stack_mode}"
180ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
181ff340006SMichael Walsh    #                               keyword will print only essential
182ff340006SMichael Walsh    #                               information.  The default value is the
183ff340006SMichael Walsh    #                               global value of "${quiet}"
184ff340006SMichael Walsh
185ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=Host Power Off
186ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
187ff340006SMichael Walsh    Run Key U  ${cmd_buf}
188800b3922SMichael Walsh
189800b3922SMichael Walsh
190800b3922SMichael WalshAPOR
191800b3922SMichael Walsh    [Documentation]  Do "APOR" boot test.
192ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
193800b3922SMichael Walsh
194ff340006SMichael Walsh    # Description of argument(s):
195ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
196ff340006SMichael Walsh    #                               specified in the boot_stack is only
197ff340006SMichael Walsh    #                               performed if the machine is not already in
198ff340006SMichael Walsh    #                               the state that would normally result from
199ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
200ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
201ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
202ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
203ff340006SMichael Walsh    #                               you simply want the machine in a desired
204ff340006SMichael Walsh    #                               state.  The default value is the global
205ff340006SMichael Walsh    #                               value of "${stack_mode}"
206ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
207ff340006SMichael Walsh    #                               keyword will print only essential
208ff340006SMichael Walsh    #                               information.  The default value is the
209ff340006SMichael Walsh    #                               global value of "${quiet}"
210ff340006SMichael Walsh
211ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=APOR
212ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
213ff340006SMichael Walsh    Run Key U  ${cmd_buf}
214800b3922SMichael Walsh
215800b3922SMichael Walsh
216800b3922SMichael WalshOBMC Reboot (run)
217800b3922SMichael Walsh    [Documentation]  Do "OBMC Reboot (run)" boot test.
218ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
219800b3922SMichael Walsh
220ff340006SMichael Walsh    # Description of argument(s):
221ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
222ff340006SMichael Walsh    #                               specified in the boot_stack is only
223ff340006SMichael Walsh    #                               performed if the machine is not already in
224ff340006SMichael Walsh    #                               the state that would normally result from
225ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
226ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
227ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
228ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
229ff340006SMichael Walsh    #                               you simply want the machine in a desired
230ff340006SMichael Walsh    #                               state.  The default value is the global
231ff340006SMichael Walsh    #                               value of "${stack_mode}"
232ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
233ff340006SMichael Walsh    #                               keyword will print only essential
234ff340006SMichael Walsh    #                               information.  The default value is the
235ff340006SMichael Walsh    #                               global value of "${quiet}"
236ff340006SMichael Walsh
237ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=OBMC Reboot (run)
238ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
239ff340006SMichael Walsh    Run Key U  ${cmd_buf}
240800b3922SMichael Walsh
24103e6339cSMichael Walsh
24203e6339cSMichael WalshREST OBMC Reboot (run)
24303e6339cSMichael Walsh    [Documentation]  Do "REST OBMC Reboot (run)" boot test.
24403e6339cSMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
24503e6339cSMichael Walsh
24603e6339cSMichael Walsh    # Description of argument(s):
24703e6339cSMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
24803e6339cSMichael Walsh    #                               specified in the boot_stack is only
24903e6339cSMichael Walsh    #                               performed if the machine is not already in
25003e6339cSMichael Walsh    #                               the state that would normally result from
25103e6339cSMichael Walsh    #                               running the given boot test.  Otherwise,
25203e6339cSMichael Walsh    #                               the test is skipped.  If stack_mode is set
25303e6339cSMichael Walsh    #                               to "normal", all tests from the boot_stack
25403e6339cSMichael Walsh    #                               are performed.  "skip" mode is useful when
25503e6339cSMichael Walsh    #                               you simply want the machine in a desired
25603e6339cSMichael Walsh    #                               state.  The default value is the global
25703e6339cSMichael Walsh    #                               value of "${stack_mode}"
25803e6339cSMichael Walsh    # quiet                         If this parameter is set to ${1}, this
25903e6339cSMichael Walsh    #                               keyword will print only essential
26003e6339cSMichael Walsh    #                               information.  The default value is the
26103e6339cSMichael Walsh    #                               global value of "${quiet}"
26203e6339cSMichael Walsh
26303e6339cSMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
26403e6339cSMichael Walsh    ...  \ loc_boot_stack=REST OBMC Reboot (run)
26503e6339cSMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
26603e6339cSMichael Walsh    Run Key U  ${cmd_buf}
267800b3922SMichael Walsh
268800b3922SMichael Walsh
269800b3922SMichael WalshOBMC Reboot (off)
270800b3922SMichael Walsh    [Documentation]  Do "OBMC Reboot (off)" boot test.
271ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
272800b3922SMichael Walsh
273ff340006SMichael Walsh    # Description of argument(s):
274ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
275ff340006SMichael Walsh    #                               specified in the boot_stack is only
276ff340006SMichael Walsh    #                               performed if the machine is not already in
277ff340006SMichael Walsh    #                               the state that would normally result from
278ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
279ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
280ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
281ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
282ff340006SMichael Walsh    #                               you simply want the machine in a desired
283ff340006SMichael Walsh    #                               state.  The default value is the global
284ff340006SMichael Walsh    #                               value of "${stack_mode}"
285ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
286ff340006SMichael Walsh    #                               keyword will print only essential
287ff340006SMichael Walsh    #                               information.  The default value is the
288ff340006SMichael Walsh    #                               global value of "${quiet}"
289ff340006SMichael Walsh
290ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=OBMC Reboot (off)
291ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
292ff340006SMichael Walsh    Run Key U  ${cmd_buf}
293800b3922SMichael Walsh
29403e6339cSMichael Walsh
29503e6339cSMichael WalshREST OBMC Reboot (off)
29603e6339cSMichael Walsh    [Documentation]  Do "REST OBMC Reboot (off)" boot test.
29703e6339cSMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
29803e6339cSMichael Walsh
29903e6339cSMichael Walsh    # Description of argument(s):
30003e6339cSMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
30103e6339cSMichael Walsh    #                               specified in the boot_stack is only
30203e6339cSMichael Walsh    #                               performed if the machine is not already in
30303e6339cSMichael Walsh    #                               the state that would normally result from
30403e6339cSMichael Walsh    #                               running the given boot test.  Otherwise,
30503e6339cSMichael Walsh    #                               the test is skipped.  If stack_mode is set
30603e6339cSMichael Walsh    #                               to "normal", all tests from the boot_stack
30703e6339cSMichael Walsh    #                               are performed.  "skip" mode is useful when
30803e6339cSMichael Walsh    #                               you simply want the machine in a desired
30903e6339cSMichael Walsh    #                               state.  The default value is the global
31003e6339cSMichael Walsh    #                               value of "${stack_mode}"
31103e6339cSMichael Walsh    # quiet                         If this parameter is set to ${1}, this
31203e6339cSMichael Walsh    #                               keyword will print only essential
31303e6339cSMichael Walsh    #                               information.  The default value is the
31403e6339cSMichael Walsh    #                               global value of "${quiet}"
31503e6339cSMichael Walsh
31603e6339cSMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
31703e6339cSMichael Walsh    ...  \ loc_boot_stack=REST OBMC Reboot (off)
31803e6339cSMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
31903e6339cSMichael Walsh    Run Key U  ${cmd_buf}
320800b3922SMichael Walsh
321800b3922SMichael Walsh
322800b3922SMichael WalshPDU AC Cycle (run)
323800b3922SMichael Walsh    [Documentation]  Do "PDU AC Cycle (run)" boot test.
324ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
325800b3922SMichael Walsh
326ff340006SMichael Walsh    # Description of argument(s):
327ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
328ff340006SMichael Walsh    #                               specified in the boot_stack is only
329ff340006SMichael Walsh    #                               performed if the machine is not already in
330ff340006SMichael Walsh    #                               the state that would normally result from
331ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
332ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
333ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
334ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
335ff340006SMichael Walsh    #                               you simply want the machine in a desired
336ff340006SMichael Walsh    #                               state.  The default value is the global
337ff340006SMichael Walsh    #                               value of "${stack_mode}"
338ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
339ff340006SMichael Walsh    #                               keyword will print only essential
340ff340006SMichael Walsh    #                               information.  The default value is the
341ff340006SMichael Walsh    #                               global value of "${quiet}"
342ff340006SMichael Walsh
343ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (run)
344ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
345ff340006SMichael Walsh    Run Key U  ${cmd_buf}
346800b3922SMichael Walsh
347800b3922SMichael Walsh
348800b3922SMichael WalshPDU AC Cycle (off)
349800b3922SMichael Walsh    [Documentation]  Do "PDU AC Cycle (off)" boot test.
350ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
351800b3922SMichael Walsh
352ff340006SMichael Walsh    # Description of argument(s):
353ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
354ff340006SMichael Walsh    #                               specified in the boot_stack is only
355ff340006SMichael Walsh    #                               performed if the machine is not already in
356ff340006SMichael Walsh    #                               the state that would normally result from
357ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
358ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
359ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
360ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
361ff340006SMichael Walsh    #                               you simply want the machine in a desired
362ff340006SMichael Walsh    #                               state.  The default value is the global
363ff340006SMichael Walsh    #                               value of "${stack_mode}"
364ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
365ff340006SMichael Walsh    #                               keyword will print only essential
366ff340006SMichael Walsh    #                               information.  The default value is the
367ff340006SMichael Walsh    #                               global value of "${quiet}"
368ff340006SMichael Walsh
369ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (off)
370ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
371ff340006SMichael Walsh    Run Key U  ${cmd_buf}
372800b3922SMichael Walsh
373800b3922SMichael Walsh
374800b3922SMichael WalshIPMI MC Reset Warm (run)
375800b3922SMichael Walsh    [Documentation]  Do "IPMI MC Reset Warm (run)" boot test.
376ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
377800b3922SMichael Walsh
378ff340006SMichael Walsh    # Description of argument(s):
379ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
380ff340006SMichael Walsh    #                               specified in the boot_stack is only
381ff340006SMichael Walsh    #                               performed if the machine is not already in
382ff340006SMichael Walsh    #                               the state that would normally result from
383ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
384ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
385ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
386ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
387ff340006SMichael Walsh    #                               you simply want the machine in a desired
388ff340006SMichael Walsh    #                               state.  The default value is the global
389ff340006SMichael Walsh    #                               value of "${stack_mode}"
390ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
391ff340006SMichael Walsh    #                               keyword will print only essential
392ff340006SMichael Walsh    #                               information.  The default value is the
393ff340006SMichael Walsh    #                               global value of "${quiet}"
394ff340006SMichael Walsh
395ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
396ff340006SMichael Walsh    ...  \ loc_boot_stack=IPMI MC Reset Warm (run)
397ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
398ff340006SMichael Walsh    Run Key U  ${cmd_buf}
399800b3922SMichael Walsh
400800b3922SMichael Walsh
401800b3922SMichael WalshIPMI MC Reset Warm (off)
402800b3922SMichael Walsh    [Documentation]  Do "IPMI MC Reset Warm (off)" boot test.
403ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
404800b3922SMichael Walsh
405ff340006SMichael Walsh    # Description of argument(s):
406ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
407ff340006SMichael Walsh    #                               specified in the boot_stack is only
408ff340006SMichael Walsh    #                               performed if the machine is not already in
409ff340006SMichael Walsh    #                               the state that would normally result from
410ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
411ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
412ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
413ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
414ff340006SMichael Walsh    #                               you simply want the machine in a desired
415ff340006SMichael Walsh    #                               state.  The default value is the global
416ff340006SMichael Walsh    #                               value of "${stack_mode}"
417ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
418ff340006SMichael Walsh    #                               keyword will print only essential
419ff340006SMichael Walsh    #                               information.  The default value is the
420ff340006SMichael Walsh    #                               global value of "${quiet}"
421ff340006SMichael Walsh
422ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
423ff340006SMichael Walsh    ...  \ loc_boot_stack=IPMI MC Reset Warm (off)
424ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
425ff340006SMichael Walsh    Run Key U  ${cmd_buf}
426800b3922SMichael Walsh
427800b3922SMichael Walsh
428*55b5c644SMichael WalshIPMI MC Reset Cold (run)
429*55b5c644SMichael Walsh    [Documentation]  Do "IPMI MC Reset Cold (run)" boot test.
430*55b5c644SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
431*55b5c644SMichael Walsh
432*55b5c644SMichael Walsh    # Description of argument(s):
433*55b5c644SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
434*55b5c644SMichael Walsh    #                               specified in the boot_stack is only
435*55b5c644SMichael Walsh    #                               performed if the machine is not already in
436*55b5c644SMichael Walsh    #                               the state that would normally result from
437*55b5c644SMichael Walsh    #                               running the given boot test.  Otherwise,
438*55b5c644SMichael Walsh    #                               the test is skipped.  If stack_mode is set
439*55b5c644SMichael Walsh    #                               to "normal", all tests from the boot_stack
440*55b5c644SMichael Walsh    #                               are performed.  "skip" mode is useful when
441*55b5c644SMichael Walsh    #                               you simply want the machine in a desired
442*55b5c644SMichael Walsh    #                               state.  The default value is the global
443*55b5c644SMichael Walsh    #                               value of "${stack_mode}"
444*55b5c644SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
445*55b5c644SMichael Walsh    #                               keyword will print only essential
446*55b5c644SMichael Walsh    #                               information.  The default value is the
447*55b5c644SMichael Walsh    #                               global value of "${quiet}"
448*55b5c644SMichael Walsh
449*55b5c644SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
450*55b5c644SMichael Walsh    ...  \ loc_boot_stack=IPMI MC Reset Cold (run)
451*55b5c644SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
452*55b5c644SMichael Walsh    Run Key U  ${cmd_buf}
453*55b5c644SMichael Walsh
454*55b5c644SMichael Walsh
455*55b5c644SMichael WalshIPMI MC Reset Cold (off)
456*55b5c644SMichael Walsh    [Documentation]  Do "IPMI MC Reset Cold (off)" boot test.
457*55b5c644SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
458*55b5c644SMichael Walsh
459*55b5c644SMichael Walsh    # Description of argument(s):
460*55b5c644SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
461*55b5c644SMichael Walsh    #                               specified in the boot_stack is only
462*55b5c644SMichael Walsh    #                               performed if the machine is not already in
463*55b5c644SMichael Walsh    #                               the state that would normally result from
464*55b5c644SMichael Walsh    #                               running the given boot test.  Otherwise,
465*55b5c644SMichael Walsh    #                               the test is skipped.  If stack_mode is set
466*55b5c644SMichael Walsh    #                               to "normal", all tests from the boot_stack
467*55b5c644SMichael Walsh    #                               are performed.  "skip" mode is useful when
468*55b5c644SMichael Walsh    #                               you simply want the machine in a desired
469*55b5c644SMichael Walsh    #                               state.  The default value is the global
470*55b5c644SMichael Walsh    #                               value of "${stack_mode}"
471*55b5c644SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
472*55b5c644SMichael Walsh    #                               keyword will print only essential
473*55b5c644SMichael Walsh    #                               information.  The default value is the
474*55b5c644SMichael Walsh    #                               global value of "${quiet}"
475*55b5c644SMichael Walsh
476*55b5c644SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
477*55b5c644SMichael Walsh    ...  \ loc_boot_stack=IPMI MC Reset Cold (off)
478*55b5c644SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
479*55b5c644SMichael Walsh    Run Key U  ${cmd_buf}
480*55b5c644SMichael Walsh
481*55b5c644SMichael Walsh
482*55b5c644SMichael WalshIPMI Std MC Reset Warm (run)
483*55b5c644SMichael Walsh    [Documentation]  Do "IPMI Std MC Reset Warm (run)" boot test.
484*55b5c644SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
485*55b5c644SMichael Walsh
486*55b5c644SMichael Walsh    # Description of argument(s):
487*55b5c644SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
488*55b5c644SMichael Walsh    #                               specified in the boot_stack is only
489*55b5c644SMichael Walsh    #                               performed if the machine is not already in
490*55b5c644SMichael Walsh    #                               the state that would normally result from
491*55b5c644SMichael Walsh    #                               running the given boot test.  Otherwise,
492*55b5c644SMichael Walsh    #                               the test is skipped.  If stack_mode is set
493*55b5c644SMichael Walsh    #                               to "normal", all tests from the boot_stack
494*55b5c644SMichael Walsh    #                               are performed.  "skip" mode is useful when
495*55b5c644SMichael Walsh    #                               you simply want the machine in a desired
496*55b5c644SMichael Walsh    #                               state.  The default value is the global
497*55b5c644SMichael Walsh    #                               value of "${stack_mode}"
498*55b5c644SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
499*55b5c644SMichael Walsh    #                               keyword will print only essential
500*55b5c644SMichael Walsh    #                               information.  The default value is the
501*55b5c644SMichael Walsh    #                               global value of "${quiet}"
502*55b5c644SMichael Walsh
503*55b5c644SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
504*55b5c644SMichael Walsh    ...  \ loc_boot_stack=IPMI Std MC Reset Warm (run)
505*55b5c644SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
506*55b5c644SMichael Walsh    Run Key U  ${cmd_buf}
507*55b5c644SMichael Walsh
508*55b5c644SMichael Walsh
509*55b5c644SMichael WalshIPMI Std MC Reset Warm (off)
510*55b5c644SMichael Walsh    [Documentation]  Do "IPMI Std MC Reset Warm (off)" boot test.
511*55b5c644SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
512*55b5c644SMichael Walsh
513*55b5c644SMichael Walsh    # Description of argument(s):
514*55b5c644SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
515*55b5c644SMichael Walsh    #                               specified in the boot_stack is only
516*55b5c644SMichael Walsh    #                               performed if the machine is not already in
517*55b5c644SMichael Walsh    #                               the state that would normally result from
518*55b5c644SMichael Walsh    #                               running the given boot test.  Otherwise,
519*55b5c644SMichael Walsh    #                               the test is skipped.  If stack_mode is set
520*55b5c644SMichael Walsh    #                               to "normal", all tests from the boot_stack
521*55b5c644SMichael Walsh    #                               are performed.  "skip" mode is useful when
522*55b5c644SMichael Walsh    #                               you simply want the machine in a desired
523*55b5c644SMichael Walsh    #                               state.  The default value is the global
524*55b5c644SMichael Walsh    #                               value of "${stack_mode}"
525*55b5c644SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
526*55b5c644SMichael Walsh    #                               keyword will print only essential
527*55b5c644SMichael Walsh    #                               information.  The default value is the
528*55b5c644SMichael Walsh    #                               global value of "${quiet}"
529*55b5c644SMichael Walsh
530*55b5c644SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
531*55b5c644SMichael Walsh    ...  \ loc_boot_stack=IPMI Std MC Reset Warm (off)
532*55b5c644SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
533*55b5c644SMichael Walsh    Run Key U  ${cmd_buf}
534*55b5c644SMichael Walsh
535*55b5c644SMichael Walsh
536*55b5c644SMichael WalshIPMI Std MC Reset Cold (run)
537*55b5c644SMichael Walsh    [Documentation]  Do "IPMI Std MC Reset Cold (run)" boot test.
538*55b5c644SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
539*55b5c644SMichael Walsh
540*55b5c644SMichael Walsh    # Description of argument(s):
541*55b5c644SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
542*55b5c644SMichael Walsh    #                               specified in the boot_stack is only
543*55b5c644SMichael Walsh    #                               performed if the machine is not already in
544*55b5c644SMichael Walsh    #                               the state that would normally result from
545*55b5c644SMichael Walsh    #                               running the given boot test.  Otherwise,
546*55b5c644SMichael Walsh    #                               the test is skipped.  If stack_mode is set
547*55b5c644SMichael Walsh    #                               to "normal", all tests from the boot_stack
548*55b5c644SMichael Walsh    #                               are performed.  "skip" mode is useful when
549*55b5c644SMichael Walsh    #                               you simply want the machine in a desired
550*55b5c644SMichael Walsh    #                               state.  The default value is the global
551*55b5c644SMichael Walsh    #                               value of "${stack_mode}"
552*55b5c644SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
553*55b5c644SMichael Walsh    #                               keyword will print only essential
554*55b5c644SMichael Walsh    #                               information.  The default value is the
555*55b5c644SMichael Walsh    #                               global value of "${quiet}"
556*55b5c644SMichael Walsh
557*55b5c644SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
558*55b5c644SMichael Walsh    ...  \ loc_boot_stack=IPMI Std MC Reset Cold (run)
559*55b5c644SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
560*55b5c644SMichael Walsh    Run Key U  ${cmd_buf}
561*55b5c644SMichael Walsh
562*55b5c644SMichael Walsh
563*55b5c644SMichael WalshIPMI Std MC Reset Cold (off)
564*55b5c644SMichael Walsh    [Documentation]  Do "IPMI Std MC Reset Cold (off)" boot test.
565*55b5c644SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
566*55b5c644SMichael Walsh
567*55b5c644SMichael Walsh    # Description of argument(s):
568*55b5c644SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
569*55b5c644SMichael Walsh    #                               specified in the boot_stack is only
570*55b5c644SMichael Walsh    #                               performed if the machine is not already in
571*55b5c644SMichael Walsh    #                               the state that would normally result from
572*55b5c644SMichael Walsh    #                               running the given boot test.  Otherwise,
573*55b5c644SMichael Walsh    #                               the test is skipped.  If stack_mode is set
574*55b5c644SMichael Walsh    #                               to "normal", all tests from the boot_stack
575*55b5c644SMichael Walsh    #                               are performed.  "skip" mode is useful when
576*55b5c644SMichael Walsh    #                               you simply want the machine in a desired
577*55b5c644SMichael Walsh    #                               state.  The default value is the global
578*55b5c644SMichael Walsh    #                               value of "${stack_mode}"
579*55b5c644SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
580*55b5c644SMichael Walsh    #                               keyword will print only essential
581*55b5c644SMichael Walsh    #                               information.  The default value is the
582*55b5c644SMichael Walsh    #                               global value of "${quiet}"
583*55b5c644SMichael Walsh
584*55b5c644SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
585*55b5c644SMichael Walsh    ...  \ loc_boot_stack=IPMI Std MC Reset Cold (off)
586*55b5c644SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
587*55b5c644SMichael Walsh    Run Key U  ${cmd_buf}
588*55b5c644SMichael Walsh
589*55b5c644SMichael Walsh
590800b3922SMichael WalshIPMI Power Cycle
591800b3922SMichael Walsh    [Documentation]  Do "IPMI Power Cycle" boot test.
592ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
593800b3922SMichael Walsh
594ff340006SMichael Walsh    # Description of argument(s):
595ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
596ff340006SMichael Walsh    #                               specified in the boot_stack is only
597ff340006SMichael Walsh    #                               performed if the machine is not already in
598ff340006SMichael Walsh    #                               the state that would normally result from
599ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
600ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
601ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
602ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
603ff340006SMichael Walsh    #                               you simply want the machine in a desired
604ff340006SMichael Walsh    #                               state.  The default value is the global
605ff340006SMichael Walsh    #                               value of "${stack_mode}"
606ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
607ff340006SMichael Walsh    #                               keyword will print only essential
608ff340006SMichael Walsh    #                               information.  The default value is the
609ff340006SMichael Walsh    #                               global value of "${quiet}"
610ff340006SMichael Walsh
611ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power Cycle
612ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
613ff340006SMichael Walsh    Run Key U  ${cmd_buf}
614800b3922SMichael Walsh
615800b3922SMichael Walsh
616800b3922SMichael WalshIPMI Power Reset
617800b3922SMichael Walsh    [Documentation]  Do "IPMI Power Reset" boot test.
618ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
619800b3922SMichael Walsh
620ff340006SMichael Walsh    # Description of argument(s):
621ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
622ff340006SMichael Walsh    #                               specified in the boot_stack is only
623ff340006SMichael Walsh    #                               performed if the machine is not already in
624ff340006SMichael Walsh    #                               the state that would normally result from
625ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
626ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
627ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
628ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
629ff340006SMichael Walsh    #                               you simply want the machine in a desired
630ff340006SMichael Walsh    #                               state.  The default value is the global
631ff340006SMichael Walsh    #                               value of "${stack_mode}"
632ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
633ff340006SMichael Walsh    #                               keyword will print only essential
634ff340006SMichael Walsh    #                               information.  The default value is the
635ff340006SMichael Walsh    #                               global value of "${quiet}"
636ff340006SMichael Walsh
637ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power Reset
638ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
639ff340006SMichael Walsh    Run Key U  ${cmd_buf}
640800b3922SMichael Walsh
641800b3922SMichael Walsh
642800b3922SMichael WalshAuto Reboot
643800b3922SMichael Walsh    [Documentation]  Do "Auto Reboot" boot test.
644ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
645800b3922SMichael Walsh
646ff340006SMichael Walsh    # Description of argument(s):
647ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
648ff340006SMichael Walsh    #                               specified in the boot_stack is only
649ff340006SMichael Walsh    #                               performed if the machine is not already in
650ff340006SMichael Walsh    #                               the state that would normally result from
651ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
652ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
653ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
654ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
655ff340006SMichael Walsh    #                               you simply want the machine in a desired
656ff340006SMichael Walsh    #                               state.  The default value is the global
657ff340006SMichael Walsh    #                               value of "${stack_mode}"
658ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
659ff340006SMichael Walsh    #                               keyword will print only essential
660ff340006SMichael Walsh    #                               information.  The default value is the
661ff340006SMichael Walsh    #                               global value of "${quiet}"
662ff340006SMichael Walsh
663ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=Auto Reboot
664ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
665ff340006SMichael Walsh    Run Key U  ${cmd_buf}
666800b3922SMichael Walsh
667800b3922SMichael Walsh
668800b3922SMichael WalshHost Reboot
669800b3922SMichael Walsh    [Documentation]  Do "Host Reboot" boot test.
670ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
671800b3922SMichael Walsh
672ff340006SMichael Walsh    # Description of argument(s):
673ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
674ff340006SMichael Walsh    #                               specified in the boot_stack is only
675ff340006SMichael Walsh    #                               performed if the machine is not already in
676ff340006SMichael Walsh    #                               the state that would normally result from
677ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
678ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
679ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
680ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
681ff340006SMichael Walsh    #                               you simply want the machine in a desired
682ff340006SMichael Walsh    #                               state.  The default value is the global
683ff340006SMichael Walsh    #                               value of "${stack_mode}"
684ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
685ff340006SMichael Walsh    #                               keyword will print only essential
686ff340006SMichael Walsh    #                               information.  The default value is the
687ff340006SMichael Walsh    #                               global value of "${quiet}"
688ff340006SMichael Walsh
689ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=Host Reboot
690ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
691ff340006SMichael Walsh    Run Key U  ${cmd_buf}
692800b3922SMichael Walsh
693800b3922SMichael Walsh
694c28c239cSMichael WalshSmart Power Off
695c28c239cSMichael Walsh    [Documentation]  Do a smart power off.
696c28c239cSMichael Walsh    [Arguments]  ${quiet}=${QUIET}
697c28c239cSMichael Walsh
698c28c239cSMichael Walsh    # A 'Smart Power Off' consists of a 'REST Power Off' with recovery.
699c28c239cSMichael Walsh    # Namely, if the 'REST Power Off' fails, a 'REST Hard Power Off' will
700c28c239cSMichael Walsh    # be attempted.
701c28c239cSMichael Walsh
702c28c239cSMichael Walsh    # Description of argument(s):
703c28c239cSMichael Walsh    # quiet                         If this parameter is set to ${1}, this
704c28c239cSMichael Walsh    #                               keyword will print only essential
705c28c239cSMichael Walsh    #                               information.  The default value is the
706c28c239cSMichael Walsh    #                               global value of "${quiet}"
707c28c239cSMichael Walsh
708c28c239cSMichael Walsh
709c28c239cSMichael Walsh    # OBMC Boot Test will restore global quiet to initial global value.
710c28c239cSMichael Walsh    # Unfortunately, that restore affects our local quiet so we must
711c28c239cSMichael Walsh    # preserve it.
712c28c239cSMichael Walsh    ${loc_quiet}=  Set Variable  ${quiet}
713c28c239cSMichael Walsh    ${cmd_buf}=  Catenate  REST Power Off \ stack_mode=skip
714c28c239cSMichael Walsh    ...  \ \ quiet=${loc_quiet}
715c28c239cSMichael Walsh    ${status}  ${ret_values}=  Run Key U  ${cmd_buf}  ignore=${1}
716c28c239cSMichael Walsh    ...  quiet=${loc_quiet}
717c28c239cSMichael Walsh
718c28c239cSMichael Walsh    Run Keyword If  '${status}' == 'PASS'  Return From Keyword
719c28c239cSMichael Walsh
720c28c239cSMichael Walsh    ${cmd_buf}=  Catenate  REST Hard Power Off \ stack_mode=skip
721c28c239cSMichael Walsh    ...  \ \ quiet=${loc_quiet}
722c28c239cSMichael Walsh    Run Key U  ${cmd_buf}  quiet=${loc_quiet}
723c28c239cSMichael Walsh
724