Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation This module provides one wrapper keyword for each kind of boot |
| 3 | ... test supported by obmc_boot_test.py. |
| 4 | |
| 5 | Resource ../extended/obmc_boot_test_resource.robot |
| 6 | |
| 7 | *** Keywords *** |
| 8 | ############################################################################### |
| 9 | REST Power On |
| 10 | [Documentation] Do "REST Power On" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 11 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 12 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 13 | # Description of argument(s): |
| 14 | # stack_mode If stack_mode is set to "skip", each test |
| 15 | # specified in the boot_stack is only |
| 16 | # performed if the machine is not already in |
| 17 | # the state that would normally result from |
| 18 | # running the given boot test. Otherwise, |
| 19 | # the test is skipped. If stack_mode is set |
| 20 | # to "normal", all tests from the boot_stack |
| 21 | # are performed. "skip" mode is useful when |
| 22 | # you simply want the machine in a desired |
| 23 | # state. The default value is the global |
| 24 | # value of "${stack_mode}" |
| 25 | # quiet If this parameter is set to ${1}, this |
| 26 | # keyword will print only essential |
| 27 | # information. The default value is the |
| 28 | # global value of "${quiet}" |
| 29 | |
| 30 | ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=REST Power On |
| 31 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 32 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 33 | |
| 34 | ############################################################################### |
| 35 | |
| 36 | |
| 37 | ############################################################################### |
| 38 | IPMI Power On |
| 39 | [Documentation] Do "IPMI Power On" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 40 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 41 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 42 | # Description of argument(s): |
| 43 | # stack_mode If stack_mode is set to "skip", each test |
| 44 | # specified in the boot_stack is only |
| 45 | # performed if the machine is not already in |
| 46 | # the state that would normally result from |
| 47 | # running the given boot test. Otherwise, |
| 48 | # the test is skipped. If stack_mode is set |
| 49 | # to "normal", all tests from the boot_stack |
| 50 | # are performed. "skip" mode is useful when |
| 51 | # you simply want the machine in a desired |
| 52 | # state. The default value is the global |
| 53 | # value of "${stack_mode}" |
| 54 | # quiet If this parameter is set to ${1}, this |
| 55 | # keyword will print only essential |
| 56 | # information. The default value is the |
| 57 | # global value of "${quiet}" |
| 58 | |
| 59 | ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power On |
| 60 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 61 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 62 | |
| 63 | ############################################################################### |
| 64 | |
| 65 | |
| 66 | ############################################################################### |
| 67 | REST Power Off |
| 68 | [Documentation] Do "REST Power Off" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 69 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 70 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 71 | # Description of argument(s): |
| 72 | # stack_mode If stack_mode is set to "skip", each test |
| 73 | # specified in the boot_stack is only |
| 74 | # performed if the machine is not already in |
| 75 | # the state that would normally result from |
| 76 | # running the given boot test. Otherwise, |
| 77 | # the test is skipped. If stack_mode is set |
| 78 | # to "normal", all tests from the boot_stack |
| 79 | # are performed. "skip" mode is useful when |
| 80 | # you simply want the machine in a desired |
| 81 | # state. The default value is the global |
| 82 | # value of "${stack_mode}" |
| 83 | # quiet If this parameter is set to ${1}, this |
| 84 | # keyword will print only essential |
| 85 | # information. The default value is the |
| 86 | # global value of "${quiet}" |
| 87 | |
| 88 | ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=REST Power Off |
| 89 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 90 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 91 | |
| 92 | ############################################################################### |
| 93 | |
| 94 | |
| 95 | ############################################################################### |
Michael Walsh | 245db7c | 2017-09-05 15:45:03 -0500 | [diff] [blame] | 96 | REST Hard Power Off |
| 97 | [Documentation] Do "REST Hard Power Off" boot test. |
| 98 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
| 99 | |
| 100 | # Description of argument(s): |
| 101 | # stack_mode If stack_mode is set to "skip", each test |
| 102 | # specified in the boot_stack is only |
| 103 | # performed if the machine is not already in |
| 104 | # the state that would normally result from |
| 105 | # running the given boot test. Otherwise, |
| 106 | # the test is skipped. If stack_mode is set |
| 107 | # to "normal", all tests from the boot_stack |
| 108 | # are performed. "skip" mode is useful when |
| 109 | # you simply want the machine in a desired |
| 110 | # state. The default value is the global |
| 111 | # value of "${stack_mode}" |
| 112 | # quiet If this parameter is set to ${1}, this |
| 113 | # keyword will print only essential |
| 114 | # information. The default value is the |
| 115 | # global value of "${quiet}" |
| 116 | |
| 117 | ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=REST Hard Power Off |
| 118 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 119 | Run Key U ${cmd_buf} |
| 120 | |
| 121 | ############################################################################### |
| 122 | |
| 123 | |
| 124 | ############################################################################### |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 125 | IPMI Power Off |
| 126 | [Documentation] Do "IPMI Power Off" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 127 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 128 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 129 | # Description of argument(s): |
| 130 | # stack_mode If stack_mode is set to "skip", each test |
| 131 | # specified in the boot_stack is only |
| 132 | # performed if the machine is not already in |
| 133 | # the state that would normally result from |
| 134 | # running the given boot test. Otherwise, |
| 135 | # the test is skipped. If stack_mode is set |
| 136 | # to "normal", all tests from the boot_stack |
| 137 | # are performed. "skip" mode is useful when |
| 138 | # you simply want the machine in a desired |
| 139 | # state. The default value is the global |
| 140 | # value of "${stack_mode}" |
| 141 | # quiet If this parameter is set to ${1}, this |
| 142 | # keyword will print only essential |
| 143 | # information. The default value is the |
| 144 | # global value of "${quiet}" |
| 145 | |
| 146 | ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Off |
| 147 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 148 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 149 | |
| 150 | ############################################################################### |
| 151 | |
| 152 | |
| 153 | ############################################################################### |
| 154 | IPMI Power Soft |
| 155 | [Documentation] Do "IPMI Power Soft" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 156 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 157 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 158 | # Description of argument(s): |
| 159 | # stack_mode If stack_mode is set to "skip", each test |
| 160 | # specified in the boot_stack is only |
| 161 | # performed if the machine is not already in |
| 162 | # the state that would normally result from |
| 163 | # running the given boot test. Otherwise, |
| 164 | # the test is skipped. If stack_mode is set |
| 165 | # to "normal", all tests from the boot_stack |
| 166 | # are performed. "skip" mode is useful when |
| 167 | # you simply want the machine in a desired |
| 168 | # state. The default value is the global |
| 169 | # value of "${stack_mode}" |
| 170 | # quiet If this parameter is set to ${1}, this |
| 171 | # keyword will print only essential |
| 172 | # information. The default value is the |
| 173 | # global value of "${quiet}" |
| 174 | |
| 175 | ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Soft |
| 176 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 177 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 178 | |
| 179 | ############################################################################### |
| 180 | |
| 181 | |
| 182 | ############################################################################### |
| 183 | Host Power Off |
| 184 | [Documentation] Do "Host Power Off" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 185 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 186 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 187 | # Description of argument(s): |
| 188 | # stack_mode If stack_mode is set to "skip", each test |
| 189 | # specified in the boot_stack is only |
| 190 | # performed if the machine is not already in |
| 191 | # the state that would normally result from |
| 192 | # running the given boot test. Otherwise, |
| 193 | # the test is skipped. If stack_mode is set |
| 194 | # to "normal", all tests from the boot_stack |
| 195 | # are performed. "skip" mode is useful when |
| 196 | # you simply want the machine in a desired |
| 197 | # state. The default value is the global |
| 198 | # value of "${stack_mode}" |
| 199 | # quiet If this parameter is set to ${1}, this |
| 200 | # keyword will print only essential |
| 201 | # information. The default value is the |
| 202 | # global value of "${quiet}" |
| 203 | |
| 204 | ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Host Power Off |
| 205 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 206 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 207 | |
| 208 | ############################################################################### |
| 209 | |
| 210 | |
| 211 | ############################################################################### |
| 212 | APOR |
| 213 | [Documentation] Do "APOR" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 214 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 215 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 216 | # Description of argument(s): |
| 217 | # stack_mode If stack_mode is set to "skip", each test |
| 218 | # specified in the boot_stack is only |
| 219 | # performed if the machine is not already in |
| 220 | # the state that would normally result from |
| 221 | # running the given boot test. Otherwise, |
| 222 | # the test is skipped. If stack_mode is set |
| 223 | # to "normal", all tests from the boot_stack |
| 224 | # are performed. "skip" mode is useful when |
| 225 | # you simply want the machine in a desired |
| 226 | # state. The default value is the global |
| 227 | # value of "${stack_mode}" |
| 228 | # quiet If this parameter is set to ${1}, this |
| 229 | # keyword will print only essential |
| 230 | # information. The default value is the |
| 231 | # global value of "${quiet}" |
| 232 | |
| 233 | ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=APOR |
| 234 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 235 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 236 | |
| 237 | ############################################################################### |
| 238 | |
| 239 | |
| 240 | ############################################################################### |
| 241 | OBMC Reboot (run) |
| 242 | [Documentation] Do "OBMC Reboot (run)" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 243 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 244 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 245 | # Description of argument(s): |
| 246 | # stack_mode If stack_mode is set to "skip", each test |
| 247 | # specified in the boot_stack is only |
| 248 | # performed if the machine is not already in |
| 249 | # the state that would normally result from |
| 250 | # running the given boot test. Otherwise, |
| 251 | # the test is skipped. If stack_mode is set |
| 252 | # to "normal", all tests from the boot_stack |
| 253 | # are performed. "skip" mode is useful when |
| 254 | # you simply want the machine in a desired |
| 255 | # state. The default value is the global |
| 256 | # value of "${stack_mode}" |
| 257 | # quiet If this parameter is set to ${1}, this |
| 258 | # keyword will print only essential |
| 259 | # information. The default value is the |
| 260 | # global value of "${quiet}" |
| 261 | |
| 262 | ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=OBMC Reboot (run) |
| 263 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 264 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 265 | |
| 266 | ############################################################################### |
| 267 | |
| 268 | |
| 269 | ############################################################################### |
| 270 | OBMC Reboot (off) |
| 271 | [Documentation] Do "OBMC Reboot (off)" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 272 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 273 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 274 | # Description of argument(s): |
| 275 | # stack_mode If stack_mode is set to "skip", each test |
| 276 | # specified in the boot_stack is only |
| 277 | # performed if the machine is not already in |
| 278 | # the state that would normally result from |
| 279 | # running the given boot test. Otherwise, |
| 280 | # the test is skipped. If stack_mode is set |
| 281 | # to "normal", all tests from the boot_stack |
| 282 | # are performed. "skip" mode is useful when |
| 283 | # you simply want the machine in a desired |
| 284 | # state. The default value is the global |
| 285 | # value of "${stack_mode}" |
| 286 | # quiet If this parameter is set to ${1}, this |
| 287 | # keyword will print only essential |
| 288 | # information. The default value is the |
| 289 | # global value of "${quiet}" |
| 290 | |
| 291 | ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=OBMC Reboot (off) |
| 292 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 293 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 294 | |
| 295 | ############################################################################### |
| 296 | |
| 297 | |
| 298 | ############################################################################### |
| 299 | PDU AC Cycle (run) |
| 300 | [Documentation] Do "PDU AC Cycle (run)" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 301 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 302 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 303 | # Description of argument(s): |
| 304 | # stack_mode If stack_mode is set to "skip", each test |
| 305 | # specified in the boot_stack is only |
| 306 | # performed if the machine is not already in |
| 307 | # the state that would normally result from |
| 308 | # running the given boot test. Otherwise, |
| 309 | # the test is skipped. If stack_mode is set |
| 310 | # to "normal", all tests from the boot_stack |
| 311 | # are performed. "skip" mode is useful when |
| 312 | # you simply want the machine in a desired |
| 313 | # state. The default value is the global |
| 314 | # value of "${stack_mode}" |
| 315 | # quiet If this parameter is set to ${1}, this |
| 316 | # keyword will print only essential |
| 317 | # information. The default value is the |
| 318 | # global value of "${quiet}" |
| 319 | |
| 320 | ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (run) |
| 321 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 322 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 323 | |
| 324 | ############################################################################### |
| 325 | |
| 326 | |
| 327 | ############################################################################### |
| 328 | PDU AC Cycle (off) |
| 329 | [Documentation] Do "PDU AC Cycle (off)" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 330 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 331 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 332 | # Description of argument(s): |
| 333 | # stack_mode If stack_mode is set to "skip", each test |
| 334 | # specified in the boot_stack is only |
| 335 | # performed if the machine is not already in |
| 336 | # the state that would normally result from |
| 337 | # running the given boot test. Otherwise, |
| 338 | # the test is skipped. If stack_mode is set |
| 339 | # to "normal", all tests from the boot_stack |
| 340 | # are performed. "skip" mode is useful when |
| 341 | # you simply want the machine in a desired |
| 342 | # state. The default value is the global |
| 343 | # value of "${stack_mode}" |
| 344 | # quiet If this parameter is set to ${1}, this |
| 345 | # keyword will print only essential |
| 346 | # information. The default value is the |
| 347 | # global value of "${quiet}" |
| 348 | |
| 349 | ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (off) |
| 350 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 351 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 352 | |
| 353 | ############################################################################### |
| 354 | |
| 355 | |
| 356 | ############################################################################### |
| 357 | IPMI MC Reset Warm (run) |
| 358 | [Documentation] Do "IPMI MC Reset Warm (run)" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 359 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 360 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 361 | # Description of argument(s): |
| 362 | # stack_mode If stack_mode is set to "skip", each test |
| 363 | # specified in the boot_stack is only |
| 364 | # performed if the machine is not already in |
| 365 | # the state that would normally result from |
| 366 | # running the given boot test. Otherwise, |
| 367 | # the test is skipped. If stack_mode is set |
| 368 | # to "normal", all tests from the boot_stack |
| 369 | # are performed. "skip" mode is useful when |
| 370 | # you simply want the machine in a desired |
| 371 | # state. The default value is the global |
| 372 | # value of "${stack_mode}" |
| 373 | # quiet If this parameter is set to ${1}, this |
| 374 | # keyword will print only essential |
| 375 | # information. The default value is the |
| 376 | # global value of "${quiet}" |
| 377 | |
| 378 | ${cmd_buf} Catenate OBMC Boot Test |
| 379 | ... \ loc_boot_stack=IPMI MC Reset Warm (run) |
| 380 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 381 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 382 | |
| 383 | ############################################################################### |
| 384 | |
| 385 | |
| 386 | ############################################################################### |
| 387 | IPMI MC Reset Warm (off) |
| 388 | [Documentation] Do "IPMI MC Reset Warm (off)" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 389 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 390 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 391 | # Description of argument(s): |
| 392 | # stack_mode If stack_mode is set to "skip", each test |
| 393 | # specified in the boot_stack is only |
| 394 | # performed if the machine is not already in |
| 395 | # the state that would normally result from |
| 396 | # running the given boot test. Otherwise, |
| 397 | # the test is skipped. If stack_mode is set |
| 398 | # to "normal", all tests from the boot_stack |
| 399 | # are performed. "skip" mode is useful when |
| 400 | # you simply want the machine in a desired |
| 401 | # state. The default value is the global |
| 402 | # value of "${stack_mode}" |
| 403 | # quiet If this parameter is set to ${1}, this |
| 404 | # keyword will print only essential |
| 405 | # information. The default value is the |
| 406 | # global value of "${quiet}" |
| 407 | |
| 408 | ${cmd_buf} Catenate OBMC Boot Test |
| 409 | ... \ loc_boot_stack=IPMI MC Reset Warm (off) |
| 410 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 411 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 412 | |
| 413 | ############################################################################### |
| 414 | |
| 415 | |
| 416 | ############################################################################### |
| 417 | IPMI Power Cycle |
| 418 | [Documentation] Do "IPMI Power Cycle" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 419 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 420 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 421 | # Description of argument(s): |
| 422 | # stack_mode If stack_mode is set to "skip", each test |
| 423 | # specified in the boot_stack is only |
| 424 | # performed if the machine is not already in |
| 425 | # the state that would normally result from |
| 426 | # running the given boot test. Otherwise, |
| 427 | # the test is skipped. If stack_mode is set |
| 428 | # to "normal", all tests from the boot_stack |
| 429 | # are performed. "skip" mode is useful when |
| 430 | # you simply want the machine in a desired |
| 431 | # state. The default value is the global |
| 432 | # value of "${stack_mode}" |
| 433 | # quiet If this parameter is set to ${1}, this |
| 434 | # keyword will print only essential |
| 435 | # information. The default value is the |
| 436 | # global value of "${quiet}" |
| 437 | |
| 438 | ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Cycle |
| 439 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 440 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 441 | |
| 442 | ############################################################################### |
| 443 | |
| 444 | |
| 445 | ############################################################################### |
| 446 | IPMI Power Reset |
| 447 | [Documentation] Do "IPMI Power Reset" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 448 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 449 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 450 | # Description of argument(s): |
| 451 | # stack_mode If stack_mode is set to "skip", each test |
| 452 | # specified in the boot_stack is only |
| 453 | # performed if the machine is not already in |
| 454 | # the state that would normally result from |
| 455 | # running the given boot test. Otherwise, |
| 456 | # the test is skipped. If stack_mode is set |
| 457 | # to "normal", all tests from the boot_stack |
| 458 | # are performed. "skip" mode is useful when |
| 459 | # you simply want the machine in a desired |
| 460 | # state. The default value is the global |
| 461 | # value of "${stack_mode}" |
| 462 | # quiet If this parameter is set to ${1}, this |
| 463 | # keyword will print only essential |
| 464 | # information. The default value is the |
| 465 | # global value of "${quiet}" |
| 466 | |
| 467 | ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Reset |
| 468 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 469 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 470 | |
| 471 | ############################################################################### |
| 472 | |
| 473 | |
| 474 | ############################################################################### |
| 475 | Auto Reboot |
| 476 | [Documentation] Do "Auto Reboot" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 477 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 478 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 479 | # Description of argument(s): |
| 480 | # stack_mode If stack_mode is set to "skip", each test |
| 481 | # specified in the boot_stack is only |
| 482 | # performed if the machine is not already in |
| 483 | # the state that would normally result from |
| 484 | # running the given boot test. Otherwise, |
| 485 | # the test is skipped. If stack_mode is set |
| 486 | # to "normal", all tests from the boot_stack |
| 487 | # are performed. "skip" mode is useful when |
| 488 | # you simply want the machine in a desired |
| 489 | # state. The default value is the global |
| 490 | # value of "${stack_mode}" |
| 491 | # quiet If this parameter is set to ${1}, this |
| 492 | # keyword will print only essential |
| 493 | # information. The default value is the |
| 494 | # global value of "${quiet}" |
| 495 | |
| 496 | ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Auto Reboot |
| 497 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 498 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 499 | |
| 500 | ############################################################################### |
| 501 | |
| 502 | |
| 503 | ############################################################################### |
| 504 | Host Reboot |
| 505 | [Documentation] Do "Host Reboot" boot test. |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 506 | [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 507 | |
Michael Walsh | ff34000 | 2017-08-29 11:18:27 -0500 | [diff] [blame] | 508 | # Description of argument(s): |
| 509 | # stack_mode If stack_mode is set to "skip", each test |
| 510 | # specified in the boot_stack is only |
| 511 | # performed if the machine is not already in |
| 512 | # the state that would normally result from |
| 513 | # running the given boot test. Otherwise, |
| 514 | # the test is skipped. If stack_mode is set |
| 515 | # to "normal", all tests from the boot_stack |
| 516 | # are performed. "skip" mode is useful when |
| 517 | # you simply want the machine in a desired |
| 518 | # state. The default value is the global |
| 519 | # value of "${stack_mode}" |
| 520 | # quiet If this parameter is set to ${1}, this |
| 521 | # keyword will print only essential |
| 522 | # information. The default value is the |
| 523 | # global value of "${quiet}" |
| 524 | |
| 525 | ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Host Reboot |
| 526 | ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} |
| 527 | Run Key U ${cmd_buf} |
Michael Walsh | 800b392 | 2017-05-05 15:30:30 -0500 | [diff] [blame] | 528 | |
| 529 | ############################################################################### |
| 530 | |
| 531 | |
Michael Walsh | c28c239 | 2017-09-07 14:17:43 -0500 | [diff] [blame] | 532 | # Additional boot test keywords. |
| 533 | ############################################################################### |
| 534 | Smart Power Off |
| 535 | [Documentation] Do a smart power off. |
| 536 | [Arguments] ${quiet}=${QUIET} |
| 537 | |
| 538 | # A 'Smart Power Off' consists of a 'REST Power Off' with recovery. |
| 539 | # Namely, if the 'REST Power Off' fails, a 'REST Hard Power Off' will |
| 540 | # be attempted. |
| 541 | |
| 542 | # Description of argument(s): |
| 543 | # quiet If this parameter is set to ${1}, this |
| 544 | # keyword will print only essential |
| 545 | # information. The default value is the |
| 546 | # global value of "${quiet}" |
| 547 | |
| 548 | |
| 549 | # OBMC Boot Test will restore global quiet to initial global value. |
| 550 | # Unfortunately, that restore affects our local quiet so we must |
| 551 | # preserve it. |
| 552 | ${loc_quiet}= Set Variable ${quiet} |
| 553 | ${cmd_buf}= Catenate REST Power Off \ stack_mode=skip |
| 554 | ... \ \ quiet=${loc_quiet} |
| 555 | ${status} ${ret_values}= Run Key U ${cmd_buf} ignore=${1} |
| 556 | ... quiet=${loc_quiet} |
| 557 | |
| 558 | Run Keyword If '${status}' == 'PASS' Return From Keyword |
| 559 | |
| 560 | ${cmd_buf}= Catenate REST Hard Power Off \ stack_mode=skip |
| 561 | ... \ \ quiet=${loc_quiet} |
| 562 | Run Key U ${cmd_buf} quiet=${loc_quiet} |
| 563 | |
| 564 | ############################################################################### |