xref: /openbmc/openbmc-test-automation/lib/boot_utils.robot (revision 0171eda622b872294a6b0580305b3e63fd3eaa3b)
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
34287a003aSMichael WalshRedfish Power On
35287a003aSMichael Walsh    [Documentation]  Do "Redfish Power On" boot test.
36287a003aSMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
37287a003aSMichael Walsh
38287a003aSMichael Walsh    # Description of argument(s):
39287a003aSMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
40287a003aSMichael Walsh    #                               specified in the boot_stack is only
41287a003aSMichael Walsh    #                               performed if the machine is not already in
42287a003aSMichael Walsh    #                               the state that would normally result from
43287a003aSMichael Walsh    #                               running the given boot test.  Otherwise,
44287a003aSMichael Walsh    #                               the test is skipped.  If stack_mode is set
45287a003aSMichael Walsh    #                               to "normal", all tests from the boot_stack
46287a003aSMichael Walsh    #                               are performed.  "skip" mode is useful when
47287a003aSMichael Walsh    #                               you simply want the machine in a desired
48287a003aSMichael Walsh    #                               state.  The default value is the global
49287a003aSMichael Walsh    #                               value of "${stack_mode}"
50287a003aSMichael Walsh    # quiet                         If this parameter is set to ${1}, this
51287a003aSMichael Walsh    #                               keyword will print only essential
52287a003aSMichael Walsh    #                               information.  The default value is the
53287a003aSMichael Walsh    #                               global value of "${quiet}"
54287a003aSMichael Walsh
55287a003aSMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=Redfish Power On
56287a003aSMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
57287a003aSMichael Walsh    Run Key U  ${cmd_buf}
58287a003aSMichael Walsh
59287a003aSMichael Walsh
60800b3922SMichael WalshIPMI Power On
61800b3922SMichael Walsh    [Documentation]  Do "IPMI Power On" 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=IPMI Power On
82ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
83ff340006SMichael Walsh    Run Key U  ${cmd_buf}
84800b3922SMichael Walsh
85800b3922SMichael Walsh
86800b3922SMichael WalshREST Power Off
87800b3922SMichael Walsh    [Documentation]  Do "REST Power Off" boot test.
88ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
89800b3922SMichael Walsh
90ff340006SMichael Walsh    # Description of argument(s):
91ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
92ff340006SMichael Walsh    #                               specified in the boot_stack is only
93ff340006SMichael Walsh    #                               performed if the machine is not already in
94ff340006SMichael Walsh    #                               the state that would normally result from
95ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
96ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
97ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
98ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
99ff340006SMichael Walsh    #                               you simply want the machine in a desired
100ff340006SMichael Walsh    #                               state.  The default value is the global
101ff340006SMichael Walsh    #                               value of "${stack_mode}"
102ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
103ff340006SMichael Walsh    #                               keyword will print only essential
104ff340006SMichael Walsh    #                               information.  The default value is the
105ff340006SMichael Walsh    #                               global value of "${quiet}"
106ff340006SMichael Walsh
107ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=REST Power Off
108ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
109ff340006SMichael Walsh    Run Key U  ${cmd_buf}
110800b3922SMichael Walsh
111800b3922SMichael Walsh
112287a003aSMichael WalshRedfish Power Off
113287a003aSMichael Walsh    [Documentation]  Do "Redfish Power Off" boot test.
114287a003aSMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
115287a003aSMichael Walsh
116287a003aSMichael Walsh    # Description of argument(s):
117287a003aSMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
118287a003aSMichael Walsh    #                               specified in the boot_stack is only
119287a003aSMichael Walsh    #                               performed if the machine is not already in
120287a003aSMichael Walsh    #                               the state that would normally result from
121287a003aSMichael Walsh    #                               running the given boot test.  Otherwise,
122287a003aSMichael Walsh    #                               the test is skipped.  If stack_mode is set
123287a003aSMichael Walsh    #                               to "normal", all tests from the boot_stack
124287a003aSMichael Walsh    #                               are performed.  "skip" mode is useful when
125287a003aSMichael Walsh    #                               you simply want the machine in a desired
126287a003aSMichael Walsh    #                               state.  The default value is the global
127287a003aSMichael Walsh    #                               value of "${stack_mode}"
128287a003aSMichael Walsh    # quiet                         If this parameter is set to ${1}, this
129287a003aSMichael Walsh    #                               keyword will print only essential
130287a003aSMichael Walsh    #                               information.  The default value is the
131287a003aSMichael Walsh    #                               global value of "${quiet}"
132287a003aSMichael Walsh
133287a003aSMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=Redfish Power Off
134287a003aSMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
135287a003aSMichael Walsh    Run Key U  ${cmd_buf}
136287a003aSMichael Walsh
137287a003aSMichael Walsh
138245db7c3SMichael WalshREST Hard Power Off
139245db7c3SMichael Walsh    [Documentation]  Do "REST Hard Power Off" boot test.
140245db7c3SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
141245db7c3SMichael Walsh
142245db7c3SMichael Walsh    # Description of argument(s):
143245db7c3SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
144245db7c3SMichael Walsh    #                               specified in the boot_stack is only
145245db7c3SMichael Walsh    #                               performed if the machine is not already in
146245db7c3SMichael Walsh    #                               the state that would normally result from
147245db7c3SMichael Walsh    #                               running the given boot test.  Otherwise,
148245db7c3SMichael Walsh    #                               the test is skipped.  If stack_mode is set
149245db7c3SMichael Walsh    #                               to "normal", all tests from the boot_stack
150245db7c3SMichael Walsh    #                               are performed.  "skip" mode is useful when
151245db7c3SMichael Walsh    #                               you simply want the machine in a desired
152245db7c3SMichael Walsh    #                               state.  The default value is the global
153245db7c3SMichael Walsh    #                               value of "${stack_mode}"
154245db7c3SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
155245db7c3SMichael Walsh    #                               keyword will print only essential
156245db7c3SMichael Walsh    #                               information.  The default value is the
157245db7c3SMichael Walsh    #                               global value of "${quiet}"
158245db7c3SMichael Walsh
159245db7c3SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=REST Hard Power Off
160245db7c3SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
161245db7c3SMichael Walsh    Run Key U  ${cmd_buf}
162245db7c3SMichael Walsh
163245db7c3SMichael Walsh
164287a003aSMichael WalshRedfish Hard Power Off
165287a003aSMichael Walsh    [Documentation]  Do "Redfish Hard Power Off" boot test.
166287a003aSMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
167287a003aSMichael Walsh
168287a003aSMichael Walsh    # Description of argument(s):
169287a003aSMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
170287a003aSMichael Walsh    #                               specified in the boot_stack is only
171287a003aSMichael Walsh    #                               performed if the machine is not already in
172287a003aSMichael Walsh    #                               the state that would normally result from
173287a003aSMichael Walsh    #                               running the given boot test.  Otherwise,
174287a003aSMichael Walsh    #                               the test is skipped.  If stack_mode is set
175287a003aSMichael Walsh    #                               to "normal", all tests from the boot_stack
176287a003aSMichael Walsh    #                               are performed.  "skip" mode is useful when
177287a003aSMichael Walsh    #                               you simply want the machine in a desired
178287a003aSMichael Walsh    #                               state.  The default value is the global
179287a003aSMichael Walsh    #                               value of "${stack_mode}"
180287a003aSMichael Walsh    # quiet                         If this parameter is set to ${1}, this
181287a003aSMichael Walsh    #                               keyword will print only essential
182287a003aSMichael Walsh    #                               information.  The default value is the
183287a003aSMichael Walsh    #                               global value of "${quiet}"
184287a003aSMichael Walsh
185287a003aSMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
186287a003aSMichael Walsh    ...  \ loc_boot_stack=Redfish Hard Power Off
187287a003aSMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
188287a003aSMichael Walsh    Run Key U  ${cmd_buf}
189287a003aSMichael Walsh
190287a003aSMichael Walsh
191800b3922SMichael WalshIPMI Power Off
192800b3922SMichael Walsh    [Documentation]  Do "IPMI Power Off" boot test.
193ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
194800b3922SMichael Walsh
195ff340006SMichael Walsh    # Description of argument(s):
196ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
197ff340006SMichael Walsh    #                               specified in the boot_stack is only
198ff340006SMichael Walsh    #                               performed if the machine is not already in
199ff340006SMichael Walsh    #                               the state that would normally result from
200ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
201ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
202ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
203ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
204ff340006SMichael Walsh    #                               you simply want the machine in a desired
205ff340006SMichael Walsh    #                               state.  The default value is the global
206ff340006SMichael Walsh    #                               value of "${stack_mode}"
207ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
208ff340006SMichael Walsh    #                               keyword will print only essential
209ff340006SMichael Walsh    #                               information.  The default value is the
210ff340006SMichael Walsh    #                               global value of "${quiet}"
211ff340006SMichael Walsh
212ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power Off
213ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
214ff340006SMichael Walsh    Run Key U  ${cmd_buf}
215800b3922SMichael Walsh
216800b3922SMichael Walsh
217800b3922SMichael WalshIPMI Power Soft
218800b3922SMichael Walsh    [Documentation]  Do "IPMI Power Soft" boot test.
219ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
220800b3922SMichael Walsh
221ff340006SMichael Walsh    # Description of argument(s):
222ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
223ff340006SMichael Walsh    #                               specified in the boot_stack is only
224ff340006SMichael Walsh    #                               performed if the machine is not already in
225ff340006SMichael Walsh    #                               the state that would normally result from
226ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
227ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
228ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
229ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
230ff340006SMichael Walsh    #                               you simply want the machine in a desired
231ff340006SMichael Walsh    #                               state.  The default value is the global
232ff340006SMichael Walsh    #                               value of "${stack_mode}"
233ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
234ff340006SMichael Walsh    #                               keyword will print only essential
235ff340006SMichael Walsh    #                               information.  The default value is the
236ff340006SMichael Walsh    #                               global value of "${quiet}"
237ff340006SMichael Walsh
238ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power Soft
239ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
240ff340006SMichael Walsh    Run Key U  ${cmd_buf}
241800b3922SMichael Walsh
242800b3922SMichael Walsh
243800b3922SMichael WalshHost Power Off
244800b3922SMichael Walsh    [Documentation]  Do "Host Power Off" boot test.
245ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
246800b3922SMichael Walsh
247ff340006SMichael Walsh    # Description of argument(s):
248ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
249ff340006SMichael Walsh    #                               specified in the boot_stack is only
250ff340006SMichael Walsh    #                               performed if the machine is not already in
251ff340006SMichael Walsh    #                               the state that would normally result from
252ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
253ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
254ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
255ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
256ff340006SMichael Walsh    #                               you simply want the machine in a desired
257ff340006SMichael Walsh    #                               state.  The default value is the global
258ff340006SMichael Walsh    #                               value of "${stack_mode}"
259ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
260ff340006SMichael Walsh    #                               keyword will print only essential
261ff340006SMichael Walsh    #                               information.  The default value is the
262ff340006SMichael Walsh    #                               global value of "${quiet}"
263ff340006SMichael Walsh
264ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=Host Power Off
265ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
266ff340006SMichael Walsh    Run Key U  ${cmd_buf}
267800b3922SMichael Walsh
268800b3922SMichael Walsh
269800b3922SMichael WalshAPOR
270800b3922SMichael Walsh    [Documentation]  Do "APOR" 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=APOR
291ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
292ff340006SMichael Walsh    Run Key U  ${cmd_buf}
293800b3922SMichael Walsh
294800b3922SMichael Walsh
295800b3922SMichael WalshOBMC Reboot (run)
296800b3922SMichael Walsh    [Documentation]  Do "OBMC Reboot (run)" boot test.
297ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
298800b3922SMichael Walsh
299ff340006SMichael Walsh    # Description of argument(s):
300ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
301ff340006SMichael Walsh    #                               specified in the boot_stack is only
302ff340006SMichael Walsh    #                               performed if the machine is not already in
303ff340006SMichael Walsh    #                               the state that would normally result from
304ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
305ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
306ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
307ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
308ff340006SMichael Walsh    #                               you simply want the machine in a desired
309ff340006SMichael Walsh    #                               state.  The default value is the global
310ff340006SMichael Walsh    #                               value of "${stack_mode}"
311ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
312ff340006SMichael Walsh    #                               keyword will print only essential
313ff340006SMichael Walsh    #                               information.  The default value is the
314ff340006SMichael Walsh    #                               global value of "${quiet}"
315ff340006SMichael Walsh
316ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=OBMC Reboot (run)
317ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
318ff340006SMichael Walsh    Run Key U  ${cmd_buf}
319800b3922SMichael Walsh
32003e6339cSMichael Walsh
32103e6339cSMichael WalshREST OBMC Reboot (run)
32203e6339cSMichael Walsh    [Documentation]  Do "REST OBMC Reboot (run)" boot test.
32303e6339cSMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
32403e6339cSMichael Walsh
32503e6339cSMichael Walsh    # Description of argument(s):
32603e6339cSMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
32703e6339cSMichael Walsh    #                               specified in the boot_stack is only
32803e6339cSMichael Walsh    #                               performed if the machine is not already in
32903e6339cSMichael Walsh    #                               the state that would normally result from
33003e6339cSMichael Walsh    #                               running the given boot test.  Otherwise,
33103e6339cSMichael Walsh    #                               the test is skipped.  If stack_mode is set
33203e6339cSMichael Walsh    #                               to "normal", all tests from the boot_stack
33303e6339cSMichael Walsh    #                               are performed.  "skip" mode is useful when
33403e6339cSMichael Walsh    #                               you simply want the machine in a desired
33503e6339cSMichael Walsh    #                               state.  The default value is the global
33603e6339cSMichael Walsh    #                               value of "${stack_mode}"
33703e6339cSMichael Walsh    # quiet                         If this parameter is set to ${1}, this
33803e6339cSMichael Walsh    #                               keyword will print only essential
33903e6339cSMichael Walsh    #                               information.  The default value is the
34003e6339cSMichael Walsh    #                               global value of "${quiet}"
34103e6339cSMichael Walsh
34203e6339cSMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
34303e6339cSMichael Walsh    ...  \ loc_boot_stack=REST OBMC Reboot (run)
34403e6339cSMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
34503e6339cSMichael Walsh    Run Key U  ${cmd_buf}
346800b3922SMichael Walsh
347800b3922SMichael Walsh
34864a9aa62SMichael WalshRedfish OBMC Reboot (run)
34964a9aa62SMichael Walsh    [Documentation]  Do "Redfish OBMC Reboot (run)" boot test.
35064a9aa62SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
35164a9aa62SMichael Walsh
35264a9aa62SMichael Walsh    # Description of argument(s):
35364a9aa62SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
35464a9aa62SMichael Walsh    #                               specified in the boot_stack is only
35564a9aa62SMichael Walsh    #                               performed if the machine is not already in
35664a9aa62SMichael Walsh    #                               the state that would normally result from
35764a9aa62SMichael Walsh    #                               running the given boot test.  Otherwise,
35864a9aa62SMichael Walsh    #                               the test is skipped.  If stack_mode is set
35964a9aa62SMichael Walsh    #                               to "normal", all tests from the boot_stack
36064a9aa62SMichael Walsh    #                               are performed.  "skip" mode is useful when
36164a9aa62SMichael Walsh    #                               you simply want the machine in a desired
36264a9aa62SMichael Walsh    #                               state.  The default value is the global
36364a9aa62SMichael Walsh    #                               value of "${stack_mode}"
36464a9aa62SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
36564a9aa62SMichael Walsh    #                               keyword will print only essential
36664a9aa62SMichael Walsh    #                               information.  The default value is the
36764a9aa62SMichael Walsh    #                               global value of "${quiet}"
36864a9aa62SMichael Walsh
36964a9aa62SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
37064a9aa62SMichael Walsh    ...  \ loc_boot_stack=Redfish OBMC Reboot (run)
37164a9aa62SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
37264a9aa62SMichael Walsh    Run Key U  ${cmd_buf}
37364a9aa62SMichael Walsh
37464a9aa62SMichael Walsh
375800b3922SMichael WalshOBMC Reboot (off)
376800b3922SMichael Walsh    [Documentation]  Do "OBMC Reboot (off)" boot test.
377ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
378800b3922SMichael Walsh
379ff340006SMichael Walsh    # Description of argument(s):
380ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
381ff340006SMichael Walsh    #                               specified in the boot_stack is only
382ff340006SMichael Walsh    #                               performed if the machine is not already in
383ff340006SMichael Walsh    #                               the state that would normally result from
384ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
385ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
386ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
387ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
388ff340006SMichael Walsh    #                               you simply want the machine in a desired
389ff340006SMichael Walsh    #                               state.  The default value is the global
390ff340006SMichael Walsh    #                               value of "${stack_mode}"
391ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
392ff340006SMichael Walsh    #                               keyword will print only essential
393ff340006SMichael Walsh    #                               information.  The default value is the
394ff340006SMichael Walsh    #                               global value of "${quiet}"
395ff340006SMichael Walsh
396ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=OBMC Reboot (off)
397ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
398ff340006SMichael Walsh    Run Key U  ${cmd_buf}
399800b3922SMichael Walsh
40003e6339cSMichael Walsh
40103e6339cSMichael WalshREST OBMC Reboot (off)
40203e6339cSMichael Walsh    [Documentation]  Do "REST OBMC Reboot (off)" boot test.
40303e6339cSMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
40403e6339cSMichael Walsh
40503e6339cSMichael Walsh    # Description of argument(s):
40603e6339cSMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
40703e6339cSMichael Walsh    #                               specified in the boot_stack is only
40803e6339cSMichael Walsh    #                               performed if the machine is not already in
40903e6339cSMichael Walsh    #                               the state that would normally result from
41003e6339cSMichael Walsh    #                               running the given boot test.  Otherwise,
41103e6339cSMichael Walsh    #                               the test is skipped.  If stack_mode is set
41203e6339cSMichael Walsh    #                               to "normal", all tests from the boot_stack
41303e6339cSMichael Walsh    #                               are performed.  "skip" mode is useful when
41403e6339cSMichael Walsh    #                               you simply want the machine in a desired
41503e6339cSMichael Walsh    #                               state.  The default value is the global
41603e6339cSMichael Walsh    #                               value of "${stack_mode}"
41703e6339cSMichael Walsh    # quiet                         If this parameter is set to ${1}, this
41803e6339cSMichael Walsh    #                               keyword will print only essential
41903e6339cSMichael Walsh    #                               information.  The default value is the
42003e6339cSMichael Walsh    #                               global value of "${quiet}"
42103e6339cSMichael Walsh
42203e6339cSMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
42303e6339cSMichael Walsh    ...  \ loc_boot_stack=REST OBMC Reboot (off)
42403e6339cSMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
42503e6339cSMichael Walsh    Run Key U  ${cmd_buf}
426800b3922SMichael Walsh
427800b3922SMichael Walsh
42864a9aa62SMichael WalshRedfish OBMC Reboot (off)
42964a9aa62SMichael Walsh    [Documentation]  Do "Redfish OBMC Reboot (off)" boot test.
43064a9aa62SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
43164a9aa62SMichael Walsh
43264a9aa62SMichael Walsh    # Description of argument(s):
43364a9aa62SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
43464a9aa62SMichael Walsh    #                               specified in the boot_stack is only
43564a9aa62SMichael Walsh    #                               performed if the machine is not already in
43664a9aa62SMichael Walsh    #                               the state that would normally result from
43764a9aa62SMichael Walsh    #                               running the given boot test.  Otherwise,
43864a9aa62SMichael Walsh    #                               the test is skipped.  If stack_mode is set
43964a9aa62SMichael Walsh    #                               to "normal", all tests from the boot_stack
44064a9aa62SMichael Walsh    #                               are performed.  "skip" mode is useful when
44164a9aa62SMichael Walsh    #                               you simply want the machine in a desired
44264a9aa62SMichael Walsh    #                               state.  The default value is the global
44364a9aa62SMichael Walsh    #                               value of "${stack_mode}"
44464a9aa62SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
44564a9aa62SMichael Walsh    #                               keyword will print only essential
44664a9aa62SMichael Walsh    #                               information.  The default value is the
44764a9aa62SMichael Walsh    #                               global value of "${quiet}"
44864a9aa62SMichael Walsh
44964a9aa62SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
45064a9aa62SMichael Walsh    ...  \ loc_boot_stack=Redfish OBMC Reboot (off)
45164a9aa62SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
45264a9aa62SMichael Walsh    Run Key U  ${cmd_buf}
45364a9aa62SMichael Walsh
45464a9aa62SMichael Walsh
455800b3922SMichael WalshPDU AC Cycle (run)
456800b3922SMichael Walsh    [Documentation]  Do "PDU AC Cycle (run)" boot test.
457ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
458800b3922SMichael Walsh
459ff340006SMichael Walsh    # Description of argument(s):
460ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
461ff340006SMichael Walsh    #                               specified in the boot_stack is only
462ff340006SMichael Walsh    #                               performed if the machine is not already in
463ff340006SMichael Walsh    #                               the state that would normally result from
464ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
465ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
466ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
467ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
468ff340006SMichael Walsh    #                               you simply want the machine in a desired
469ff340006SMichael Walsh    #                               state.  The default value is the global
470ff340006SMichael Walsh    #                               value of "${stack_mode}"
471ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
472ff340006SMichael Walsh    #                               keyword will print only essential
473ff340006SMichael Walsh    #                               information.  The default value is the
474ff340006SMichael Walsh    #                               global value of "${quiet}"
475ff340006SMichael Walsh
476ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (run)
477ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
478ff340006SMichael Walsh    Run Key U  ${cmd_buf}
479800b3922SMichael Walsh
480800b3922SMichael Walsh
481800b3922SMichael WalshPDU AC Cycle (off)
482800b3922SMichael Walsh    [Documentation]  Do "PDU AC Cycle (off)" boot test.
483ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
484800b3922SMichael Walsh
485ff340006SMichael Walsh    # Description of argument(s):
486ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
487ff340006SMichael Walsh    #                               specified in the boot_stack is only
488ff340006SMichael Walsh    #                               performed if the machine is not already in
489ff340006SMichael Walsh    #                               the state that would normally result from
490ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
491ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
492ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
493ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
494ff340006SMichael Walsh    #                               you simply want the machine in a desired
495ff340006SMichael Walsh    #                               state.  The default value is the global
496ff340006SMichael Walsh    #                               value of "${stack_mode}"
497ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
498ff340006SMichael Walsh    #                               keyword will print only essential
499ff340006SMichael Walsh    #                               information.  The default value is the
500ff340006SMichael Walsh    #                               global value of "${quiet}"
501ff340006SMichael Walsh
502ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (off)
503ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
504ff340006SMichael Walsh    Run Key U  ${cmd_buf}
505800b3922SMichael Walsh
506800b3922SMichael Walsh
507800b3922SMichael WalshIPMI MC Reset Warm (run)
508800b3922SMichael Walsh    [Documentation]  Do "IPMI MC Reset Warm (run)" boot test.
509ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
510800b3922SMichael Walsh
511ff340006SMichael Walsh    # Description of argument(s):
512ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
513ff340006SMichael Walsh    #                               specified in the boot_stack is only
514ff340006SMichael Walsh    #                               performed if the machine is not already in
515ff340006SMichael Walsh    #                               the state that would normally result from
516ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
517ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
518ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
519ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
520ff340006SMichael Walsh    #                               you simply want the machine in a desired
521ff340006SMichael Walsh    #                               state.  The default value is the global
522ff340006SMichael Walsh    #                               value of "${stack_mode}"
523ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
524ff340006SMichael Walsh    #                               keyword will print only essential
525ff340006SMichael Walsh    #                               information.  The default value is the
526ff340006SMichael Walsh    #                               global value of "${quiet}"
527ff340006SMichael Walsh
528ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
529ff340006SMichael Walsh    ...  \ loc_boot_stack=IPMI MC Reset Warm (run)
530ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
531ff340006SMichael Walsh    Run Key U  ${cmd_buf}
532800b3922SMichael Walsh
533800b3922SMichael Walsh
534800b3922SMichael WalshIPMI MC Reset Warm (off)
535800b3922SMichael Walsh    [Documentation]  Do "IPMI MC Reset Warm (off)" boot test.
536ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
537800b3922SMichael Walsh
538ff340006SMichael Walsh    # Description of argument(s):
539ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
540ff340006SMichael Walsh    #                               specified in the boot_stack is only
541ff340006SMichael Walsh    #                               performed if the machine is not already in
542ff340006SMichael Walsh    #                               the state that would normally result from
543ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
544ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
545ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
546ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
547ff340006SMichael Walsh    #                               you simply want the machine in a desired
548ff340006SMichael Walsh    #                               state.  The default value is the global
549ff340006SMichael Walsh    #                               value of "${stack_mode}"
550ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
551ff340006SMichael Walsh    #                               keyword will print only essential
552ff340006SMichael Walsh    #                               information.  The default value is the
553ff340006SMichael Walsh    #                               global value of "${quiet}"
554ff340006SMichael Walsh
555ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
556ff340006SMichael Walsh    ...  \ loc_boot_stack=IPMI MC Reset Warm (off)
557ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
558ff340006SMichael Walsh    Run Key U  ${cmd_buf}
559800b3922SMichael Walsh
560800b3922SMichael Walsh
56155b5c644SMichael WalshIPMI MC Reset Cold (run)
56255b5c644SMichael Walsh    [Documentation]  Do "IPMI MC Reset Cold (run)" boot test.
56355b5c644SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
56455b5c644SMichael Walsh
56555b5c644SMichael Walsh    # Description of argument(s):
56655b5c644SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
56755b5c644SMichael Walsh    #                               specified in the boot_stack is only
56855b5c644SMichael Walsh    #                               performed if the machine is not already in
56955b5c644SMichael Walsh    #                               the state that would normally result from
57055b5c644SMichael Walsh    #                               running the given boot test.  Otherwise,
57155b5c644SMichael Walsh    #                               the test is skipped.  If stack_mode is set
57255b5c644SMichael Walsh    #                               to "normal", all tests from the boot_stack
57355b5c644SMichael Walsh    #                               are performed.  "skip" mode is useful when
57455b5c644SMichael Walsh    #                               you simply want the machine in a desired
57555b5c644SMichael Walsh    #                               state.  The default value is the global
57655b5c644SMichael Walsh    #                               value of "${stack_mode}"
57755b5c644SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
57855b5c644SMichael Walsh    #                               keyword will print only essential
57955b5c644SMichael Walsh    #                               information.  The default value is the
58055b5c644SMichael Walsh    #                               global value of "${quiet}"
58155b5c644SMichael Walsh
58255b5c644SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
58355b5c644SMichael Walsh    ...  \ loc_boot_stack=IPMI MC Reset Cold (run)
58455b5c644SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
58555b5c644SMichael Walsh    Run Key U  ${cmd_buf}
58655b5c644SMichael Walsh
58755b5c644SMichael Walsh
58855b5c644SMichael WalshIPMI MC Reset Cold (off)
58955b5c644SMichael Walsh    [Documentation]  Do "IPMI MC Reset Cold (off)" boot test.
59055b5c644SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
59155b5c644SMichael Walsh
59255b5c644SMichael Walsh    # Description of argument(s):
59355b5c644SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
59455b5c644SMichael Walsh    #                               specified in the boot_stack is only
59555b5c644SMichael Walsh    #                               performed if the machine is not already in
59655b5c644SMichael Walsh    #                               the state that would normally result from
59755b5c644SMichael Walsh    #                               running the given boot test.  Otherwise,
59855b5c644SMichael Walsh    #                               the test is skipped.  If stack_mode is set
59955b5c644SMichael Walsh    #                               to "normal", all tests from the boot_stack
60055b5c644SMichael Walsh    #                               are performed.  "skip" mode is useful when
60155b5c644SMichael Walsh    #                               you simply want the machine in a desired
60255b5c644SMichael Walsh    #                               state.  The default value is the global
60355b5c644SMichael Walsh    #                               value of "${stack_mode}"
60455b5c644SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
60555b5c644SMichael Walsh    #                               keyword will print only essential
60655b5c644SMichael Walsh    #                               information.  The default value is the
60755b5c644SMichael Walsh    #                               global value of "${quiet}"
60855b5c644SMichael Walsh
60955b5c644SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
61055b5c644SMichael Walsh    ...  \ loc_boot_stack=IPMI MC Reset Cold (off)
61155b5c644SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
61255b5c644SMichael Walsh    Run Key U  ${cmd_buf}
61355b5c644SMichael Walsh
61455b5c644SMichael Walsh
61555b5c644SMichael WalshIPMI Std MC Reset Warm (run)
61655b5c644SMichael Walsh    [Documentation]  Do "IPMI Std MC Reset Warm (run)" boot test.
61755b5c644SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
61855b5c644SMichael Walsh
61955b5c644SMichael Walsh    # Description of argument(s):
62055b5c644SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
62155b5c644SMichael Walsh    #                               specified in the boot_stack is only
62255b5c644SMichael Walsh    #                               performed if the machine is not already in
62355b5c644SMichael Walsh    #                               the state that would normally result from
62455b5c644SMichael Walsh    #                               running the given boot test.  Otherwise,
62555b5c644SMichael Walsh    #                               the test is skipped.  If stack_mode is set
62655b5c644SMichael Walsh    #                               to "normal", all tests from the boot_stack
62755b5c644SMichael Walsh    #                               are performed.  "skip" mode is useful when
62855b5c644SMichael Walsh    #                               you simply want the machine in a desired
62955b5c644SMichael Walsh    #                               state.  The default value is the global
63055b5c644SMichael Walsh    #                               value of "${stack_mode}"
63155b5c644SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
63255b5c644SMichael Walsh    #                               keyword will print only essential
63355b5c644SMichael Walsh    #                               information.  The default value is the
63455b5c644SMichael Walsh    #                               global value of "${quiet}"
63555b5c644SMichael Walsh
63655b5c644SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
63755b5c644SMichael Walsh    ...  \ loc_boot_stack=IPMI Std MC Reset Warm (run)
63855b5c644SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
63955b5c644SMichael Walsh    Run Key U  ${cmd_buf}
64055b5c644SMichael Walsh
64155b5c644SMichael Walsh
64255b5c644SMichael WalshIPMI Std MC Reset Warm (off)
64355b5c644SMichael Walsh    [Documentation]  Do "IPMI Std MC Reset Warm (off)" boot test.
64455b5c644SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
64555b5c644SMichael Walsh
64655b5c644SMichael Walsh    # Description of argument(s):
64755b5c644SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
64855b5c644SMichael Walsh    #                               specified in the boot_stack is only
64955b5c644SMichael Walsh    #                               performed if the machine is not already in
65055b5c644SMichael Walsh    #                               the state that would normally result from
65155b5c644SMichael Walsh    #                               running the given boot test.  Otherwise,
65255b5c644SMichael Walsh    #                               the test is skipped.  If stack_mode is set
65355b5c644SMichael Walsh    #                               to "normal", all tests from the boot_stack
65455b5c644SMichael Walsh    #                               are performed.  "skip" mode is useful when
65555b5c644SMichael Walsh    #                               you simply want the machine in a desired
65655b5c644SMichael Walsh    #                               state.  The default value is the global
65755b5c644SMichael Walsh    #                               value of "${stack_mode}"
65855b5c644SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
65955b5c644SMichael Walsh    #                               keyword will print only essential
66055b5c644SMichael Walsh    #                               information.  The default value is the
66155b5c644SMichael Walsh    #                               global value of "${quiet}"
66255b5c644SMichael Walsh
66355b5c644SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
66455b5c644SMichael Walsh    ...  \ loc_boot_stack=IPMI Std MC Reset Warm (off)
66555b5c644SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
66655b5c644SMichael Walsh    Run Key U  ${cmd_buf}
66755b5c644SMichael Walsh
66855b5c644SMichael Walsh
66955b5c644SMichael WalshIPMI Std MC Reset Cold (run)
67055b5c644SMichael Walsh    [Documentation]  Do "IPMI Std MC Reset Cold (run)" boot test.
67155b5c644SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
67255b5c644SMichael Walsh
67355b5c644SMichael Walsh    # Description of argument(s):
67455b5c644SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
67555b5c644SMichael Walsh    #                               specified in the boot_stack is only
67655b5c644SMichael Walsh    #                               performed if the machine is not already in
67755b5c644SMichael Walsh    #                               the state that would normally result from
67855b5c644SMichael Walsh    #                               running the given boot test.  Otherwise,
67955b5c644SMichael Walsh    #                               the test is skipped.  If stack_mode is set
68055b5c644SMichael Walsh    #                               to "normal", all tests from the boot_stack
68155b5c644SMichael Walsh    #                               are performed.  "skip" mode is useful when
68255b5c644SMichael Walsh    #                               you simply want the machine in a desired
68355b5c644SMichael Walsh    #                               state.  The default value is the global
68455b5c644SMichael Walsh    #                               value of "${stack_mode}"
68555b5c644SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
68655b5c644SMichael Walsh    #                               keyword will print only essential
68755b5c644SMichael Walsh    #                               information.  The default value is the
68855b5c644SMichael Walsh    #                               global value of "${quiet}"
68955b5c644SMichael Walsh
69055b5c644SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
69155b5c644SMichael Walsh    ...  \ loc_boot_stack=IPMI Std MC Reset Cold (run)
69255b5c644SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
69355b5c644SMichael Walsh    Run Key U  ${cmd_buf}
69455b5c644SMichael Walsh
69555b5c644SMichael Walsh
69655b5c644SMichael WalshIPMI Std MC Reset Cold (off)
69755b5c644SMichael Walsh    [Documentation]  Do "IPMI Std MC Reset Cold (off)" boot test.
69855b5c644SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
69955b5c644SMichael Walsh
70055b5c644SMichael Walsh    # Description of argument(s):
70155b5c644SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
70255b5c644SMichael Walsh    #                               specified in the boot_stack is only
70355b5c644SMichael Walsh    #                               performed if the machine is not already in
70455b5c644SMichael Walsh    #                               the state that would normally result from
70555b5c644SMichael Walsh    #                               running the given boot test.  Otherwise,
70655b5c644SMichael Walsh    #                               the test is skipped.  If stack_mode is set
70755b5c644SMichael Walsh    #                               to "normal", all tests from the boot_stack
70855b5c644SMichael Walsh    #                               are performed.  "skip" mode is useful when
70955b5c644SMichael Walsh    #                               you simply want the machine in a desired
71055b5c644SMichael Walsh    #                               state.  The default value is the global
71155b5c644SMichael Walsh    #                               value of "${stack_mode}"
71255b5c644SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
71355b5c644SMichael Walsh    #                               keyword will print only essential
71455b5c644SMichael Walsh    #                               information.  The default value is the
71555b5c644SMichael Walsh    #                               global value of "${quiet}"
71655b5c644SMichael Walsh
71755b5c644SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test
71855b5c644SMichael Walsh    ...  \ loc_boot_stack=IPMI Std MC Reset Cold (off)
71955b5c644SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
72055b5c644SMichael Walsh    Run Key U  ${cmd_buf}
72155b5c644SMichael Walsh
72255b5c644SMichael Walsh
723800b3922SMichael WalshIPMI Power Cycle
724800b3922SMichael Walsh    [Documentation]  Do "IPMI Power Cycle" boot test.
725ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
726800b3922SMichael Walsh
727ff340006SMichael Walsh    # Description of argument(s):
728ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
729ff340006SMichael Walsh    #                               specified in the boot_stack is only
730ff340006SMichael Walsh    #                               performed if the machine is not already in
731ff340006SMichael Walsh    #                               the state that would normally result from
732ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
733ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
734ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
735ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
736ff340006SMichael Walsh    #                               you simply want the machine in a desired
737ff340006SMichael Walsh    #                               state.  The default value is the global
738ff340006SMichael Walsh    #                               value of "${stack_mode}"
739ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
740ff340006SMichael Walsh    #                               keyword will print only essential
741ff340006SMichael Walsh    #                               information.  The default value is the
742ff340006SMichael Walsh    #                               global value of "${quiet}"
743ff340006SMichael Walsh
744ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power Cycle
745ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
746ff340006SMichael Walsh    Run Key U  ${cmd_buf}
747800b3922SMichael Walsh
748800b3922SMichael Walsh
749800b3922SMichael WalshIPMI Power Reset
750800b3922SMichael Walsh    [Documentation]  Do "IPMI Power Reset" boot test.
751ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
752800b3922SMichael Walsh
753ff340006SMichael Walsh    # Description of argument(s):
754ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
755ff340006SMichael Walsh    #                               specified in the boot_stack is only
756ff340006SMichael Walsh    #                               performed if the machine is not already in
757ff340006SMichael Walsh    #                               the state that would normally result from
758ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
759ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
760ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
761ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
762ff340006SMichael Walsh    #                               you simply want the machine in a desired
763ff340006SMichael Walsh    #                               state.  The default value is the global
764ff340006SMichael Walsh    #                               value of "${stack_mode}"
765ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
766ff340006SMichael Walsh    #                               keyword will print only essential
767ff340006SMichael Walsh    #                               information.  The default value is the
768ff340006SMichael Walsh    #                               global value of "${quiet}"
769ff340006SMichael Walsh
770ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=IPMI Power Reset
771ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
772ff340006SMichael Walsh    Run Key U  ${cmd_buf}
773800b3922SMichael Walsh
774800b3922SMichael Walsh
775800b3922SMichael WalshAuto Reboot
776800b3922SMichael Walsh    [Documentation]  Do "Auto Reboot" boot test.
777ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
778800b3922SMichael Walsh
779ff340006SMichael Walsh    # Description of argument(s):
780ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
781ff340006SMichael Walsh    #                               specified in the boot_stack is only
782ff340006SMichael Walsh    #                               performed if the machine is not already in
783ff340006SMichael Walsh    #                               the state that would normally result from
784ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
785ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
786ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
787ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
788ff340006SMichael Walsh    #                               you simply want the machine in a desired
789ff340006SMichael Walsh    #                               state.  The default value is the global
790ff340006SMichael Walsh    #                               value of "${stack_mode}"
791ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
792ff340006SMichael Walsh    #                               keyword will print only essential
793ff340006SMichael Walsh    #                               information.  The default value is the
794ff340006SMichael Walsh    #                               global value of "${quiet}"
795ff340006SMichael Walsh
796ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=Auto Reboot
797ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
798ff340006SMichael Walsh    Run Key U  ${cmd_buf}
799800b3922SMichael Walsh
800800b3922SMichael Walsh
801800b3922SMichael WalshHost Reboot
802800b3922SMichael Walsh    [Documentation]  Do "Host Reboot" boot test.
803ff340006SMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
804800b3922SMichael Walsh
805ff340006SMichael Walsh    # Description of argument(s):
806ff340006SMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
807ff340006SMichael Walsh    #                               specified in the boot_stack is only
808ff340006SMichael Walsh    #                               performed if the machine is not already in
809ff340006SMichael Walsh    #                               the state that would normally result from
810ff340006SMichael Walsh    #                               running the given boot test.  Otherwise,
811ff340006SMichael Walsh    #                               the test is skipped.  If stack_mode is set
812ff340006SMichael Walsh    #                               to "normal", all tests from the boot_stack
813ff340006SMichael Walsh    #                               are performed.  "skip" mode is useful when
814ff340006SMichael Walsh    #                               you simply want the machine in a desired
815ff340006SMichael Walsh    #                               state.  The default value is the global
816ff340006SMichael Walsh    #                               value of "${stack_mode}"
817ff340006SMichael Walsh    # quiet                         If this parameter is set to ${1}, this
818ff340006SMichael Walsh    #                               keyword will print only essential
819ff340006SMichael Walsh    #                               information.  The default value is the
820ff340006SMichael Walsh    #                               global value of "${quiet}"
821ff340006SMichael Walsh
822ff340006SMichael Walsh    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=Host Reboot
823ff340006SMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
824ff340006SMichael Walsh    Run Key U  ${cmd_buf}
825800b3922SMichael Walsh
826800b3922SMichael Walsh
827e523fc04SGeorge KeishingRF SYS GracefulRestart
828e523fc04SGeorge Keishing    [Documentation]  Do "RF SYS GracefulRestart" boot test.
829287a003aSMichael Walsh    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
830287a003aSMichael Walsh
831287a003aSMichael Walsh    # Description of argument(s):
832287a003aSMichael Walsh    # stack_mode                    If stack_mode is set to "skip", each test
833287a003aSMichael Walsh    #                               specified in the boot_stack is only
834287a003aSMichael Walsh    #                               performed if the machine is not already in
835287a003aSMichael Walsh    #                               the state that would normally result from
836287a003aSMichael Walsh    #                               running the given boot test.  Otherwise,
837287a003aSMichael Walsh    #                               the test is skipped.  If stack_mode is set
838287a003aSMichael Walsh    #                               to "normal", all tests from the boot_stack
839287a003aSMichael Walsh    #                               are performed.  "skip" mode is useful when
840287a003aSMichael Walsh    #                               you simply want the machine in a desired
841287a003aSMichael Walsh    #                               state.  The default value is the global
842287a003aSMichael Walsh    #                               value of "${stack_mode}"
843287a003aSMichael Walsh    # quiet                         If this parameter is set to ${1}, this
844287a003aSMichael Walsh    #                               keyword will print only essential
845287a003aSMichael Walsh    #                               information.  The default value is the
846287a003aSMichael Walsh    #                               global value of "${quiet}"
847287a003aSMichael Walsh
848e523fc04SGeorge Keishing    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=RF SYS GracefulRestart
849287a003aSMichael Walsh    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
850287a003aSMichael Walsh    Run Key U  ${cmd_buf}
851287a003aSMichael Walsh
852287a003aSMichael Walsh
8535b2a6130SGeorge KeishingRF SYS ForceRestart
8545b2a6130SGeorge Keishing    [Documentation]  Do "RF SYS ForceRestart" boot test.
8555b2a6130SGeorge Keishing    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
8565b2a6130SGeorge Keishing
8575b2a6130SGeorge Keishing    # Description of argument(s):
8585b2a6130SGeorge Keishing    # stack_mode                    If stack_mode is set to "skip", each test
8595b2a6130SGeorge Keishing    #                               specified in the boot_stack is only
8605b2a6130SGeorge Keishing    #                               performed if the machine is not already in
8615b2a6130SGeorge Keishing    #                               the state that would normally result from
8625b2a6130SGeorge Keishing    #                               running the given boot test.  Otherwise,
8635b2a6130SGeorge Keishing    #                               the test is skipped.  If stack_mode is set
8645b2a6130SGeorge Keishing    #                               to "normal", all tests from the boot_stack
8655b2a6130SGeorge Keishing    #                               are performed.  "skip" mode is useful when
8665b2a6130SGeorge Keishing    #                               you simply want the machine in a desired
8675b2a6130SGeorge Keishing    #                               state.  The default value is the global
8685b2a6130SGeorge Keishing    #                               value of "${stack_mode}"
8695b2a6130SGeorge Keishing    # quiet                         If this parameter is set to ${1}, this
8705b2a6130SGeorge Keishing    #                               keyword will print only essential
8715b2a6130SGeorge Keishing    #                               information.  The default value is the
8725b2a6130SGeorge Keishing    #                               global value of "${quiet}"
8735b2a6130SGeorge Keishing
8745b2a6130SGeorge Keishing    ${cmd_buf}  Catenate  OBMC Boot Test \ loc_boot_stack=RF SYS ForceRestart
8755b2a6130SGeorge Keishing    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
8765b2a6130SGeorge Keishing    Run Key U  ${cmd_buf}
8775b2a6130SGeorge Keishing
8785b2a6130SGeorge Keishing
879*0171eda6SSri CharithaTool Initd MP Reboot
880*0171eda6SSri Charitha    [Documentation]  Do "Initd MP reboot" boot test.
881*0171eda6SSri Charitha    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}
882*0171eda6SSri Charitha
883*0171eda6SSri Charitha    # Description of argument(s):
884*0171eda6SSri Charitha    # stack_mode                    If stack_mode is set to "skip", each test
885*0171eda6SSri Charitha    #                               specified in the boot_stack is only
886*0171eda6SSri Charitha    #                               performed if the machine is not already in
887*0171eda6SSri Charitha    #                               the state that would normally result from
888*0171eda6SSri Charitha    #                               running the given boot test.  Otherwise,
889*0171eda6SSri Charitha    #                               the test is skipped.  If stack_mode is set
890*0171eda6SSri Charitha    #                               to "normal", all tests from the boot_stack
891*0171eda6SSri Charitha    #                               are performed.  "skip" mode is useful when
892*0171eda6SSri Charitha    #                               you simply want the machine in a desired
893*0171eda6SSri Charitha    #                               state.  The default value is the global
894*0171eda6SSri Charitha    #                               value of "${stack_mode}"
895*0171eda6SSri Charitha    # quiet                         If this parameter is set to ${1}, this
896*0171eda6SSri Charitha    #                               keyword will print only essential
897*0171eda6SSri Charitha    #                               information.  The default value is the
898*0171eda6SSri Charitha    #                               global value of "${quiet}"
899*0171eda6SSri Charitha
900*0171eda6SSri Charitha    ${cmd_buf}  Catenate  OBMC Boot Test
901*0171eda6SSri Charitha    ...  \ loc_boot_stack=Tool Initd MP Reboot
902*0171eda6SSri Charitha    ...  \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
903*0171eda6SSri Charitha    Run Key U  ${cmd_buf}
904*0171eda6SSri Charitha
905*0171eda6SSri Charitha
906c28c239cSMichael WalshSmart Power Off
907c28c239cSMichael Walsh    [Documentation]  Do a smart power off.
908c28c239cSMichael Walsh    [Arguments]  ${quiet}=${QUIET}
909c28c239cSMichael Walsh
910c28c239cSMichael Walsh    # A 'Smart Power Off' consists of a 'REST Power Off' with recovery.
911c28c239cSMichael Walsh    # Namely, if the 'REST Power Off' fails, a 'REST Hard Power Off' will
912c28c239cSMichael Walsh    # be attempted.
913c28c239cSMichael Walsh
914c28c239cSMichael Walsh    # Description of argument(s):
915c28c239cSMichael Walsh    # quiet                         If this parameter is set to ${1}, this
916c28c239cSMichael Walsh    #                               keyword will print only essential
917c28c239cSMichael Walsh    #                               information.  The default value is the
918c28c239cSMichael Walsh    #                               global value of "${quiet}"
919c28c239cSMichael Walsh
920c28c239cSMichael Walsh
921c28c239cSMichael Walsh    # OBMC Boot Test will restore global quiet to initial global value.
922c28c239cSMichael Walsh    # Unfortunately, that restore affects our local quiet so we must
923c28c239cSMichael Walsh    # preserve it.
924c28c239cSMichael Walsh    ${loc_quiet}=  Set Variable  ${quiet}
925c28c239cSMichael Walsh    ${cmd_buf}=  Catenate  REST Power Off \ stack_mode=skip
926c28c239cSMichael Walsh    ...  \ \ quiet=${loc_quiet}
927c28c239cSMichael Walsh    ${status}  ${ret_values}=  Run Key U  ${cmd_buf}  ignore=${1}
928c28c239cSMichael Walsh    ...  quiet=${loc_quiet}
929c28c239cSMichael Walsh
930c28c239cSMichael Walsh    Run Keyword If  '${status}' == 'PASS'  Return From Keyword
931c28c239cSMichael Walsh
932c28c239cSMichael Walsh    ${cmd_buf}=  Catenate  REST Hard Power Off \ stack_mode=skip
933c28c239cSMichael Walsh    ...  \ \ quiet=${loc_quiet}
934c28c239cSMichael Walsh    Run Key U  ${cmd_buf}  quiet=${loc_quiet}
935c28c239cSMichael Walsh
936