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 Walsh############################################################################### 9800b3922SMichael WalshREST Power On 10800b3922SMichael Walsh [Documentation] Do "REST Power On" boot test. 11ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 12800b3922SMichael Walsh 13ff340006SMichael Walsh # Description of argument(s): 14ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 15ff340006SMichael Walsh # specified in the boot_stack is only 16ff340006SMichael Walsh # performed if the machine is not already in 17ff340006SMichael Walsh # the state that would normally result from 18ff340006SMichael Walsh # running the given boot test. Otherwise, 19ff340006SMichael Walsh # the test is skipped. If stack_mode is set 20ff340006SMichael Walsh # to "normal", all tests from the boot_stack 21ff340006SMichael Walsh # are performed. "skip" mode is useful when 22ff340006SMichael Walsh # you simply want the machine in a desired 23ff340006SMichael Walsh # state. The default value is the global 24ff340006SMichael Walsh # value of "${stack_mode}" 25ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 26ff340006SMichael Walsh # keyword will print only essential 27ff340006SMichael Walsh # information. The default value is the 28ff340006SMichael Walsh # global value of "${quiet}" 29ff340006SMichael Walsh 30ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=REST Power On 31ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 32ff340006SMichael Walsh Run Key U ${cmd_buf} 33800b3922SMichael Walsh 34800b3922SMichael Walsh############################################################################### 35800b3922SMichael Walsh 36800b3922SMichael Walsh 37800b3922SMichael Walsh############################################################################### 38800b3922SMichael WalshIPMI Power On 39800b3922SMichael Walsh [Documentation] Do "IPMI Power On" boot test. 40ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 41800b3922SMichael Walsh 42ff340006SMichael Walsh # Description of argument(s): 43ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 44ff340006SMichael Walsh # specified in the boot_stack is only 45ff340006SMichael Walsh # performed if the machine is not already in 46ff340006SMichael Walsh # the state that would normally result from 47ff340006SMichael Walsh # running the given boot test. Otherwise, 48ff340006SMichael Walsh # the test is skipped. If stack_mode is set 49ff340006SMichael Walsh # to "normal", all tests from the boot_stack 50ff340006SMichael Walsh # are performed. "skip" mode is useful when 51ff340006SMichael Walsh # you simply want the machine in a desired 52ff340006SMichael Walsh # state. The default value is the global 53ff340006SMichael Walsh # value of "${stack_mode}" 54ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 55ff340006SMichael Walsh # keyword will print only essential 56ff340006SMichael Walsh # information. The default value is the 57ff340006SMichael Walsh # global value of "${quiet}" 58ff340006SMichael Walsh 59ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power On 60ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 61ff340006SMichael Walsh Run Key U ${cmd_buf} 62800b3922SMichael Walsh 63800b3922SMichael Walsh############################################################################### 64800b3922SMichael Walsh 65800b3922SMichael Walsh 66800b3922SMichael Walsh############################################################################### 67800b3922SMichael WalshREST Power Off 68800b3922SMichael Walsh [Documentation] Do "REST Power Off" boot test. 69ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 70800b3922SMichael Walsh 71ff340006SMichael Walsh # Description of argument(s): 72ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 73ff340006SMichael Walsh # specified in the boot_stack is only 74ff340006SMichael Walsh # performed if the machine is not already in 75ff340006SMichael Walsh # the state that would normally result from 76ff340006SMichael Walsh # running the given boot test. Otherwise, 77ff340006SMichael Walsh # the test is skipped. If stack_mode is set 78ff340006SMichael Walsh # to "normal", all tests from the boot_stack 79ff340006SMichael Walsh # are performed. "skip" mode is useful when 80ff340006SMichael Walsh # you simply want the machine in a desired 81ff340006SMichael Walsh # state. The default value is the global 82ff340006SMichael Walsh # value of "${stack_mode}" 83ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 84ff340006SMichael Walsh # keyword will print only essential 85ff340006SMichael Walsh # information. The default value is the 86ff340006SMichael Walsh # global value of "${quiet}" 87ff340006SMichael Walsh 88ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=REST Power Off 89ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 90ff340006SMichael Walsh Run Key U ${cmd_buf} 91800b3922SMichael Walsh 92800b3922SMichael Walsh############################################################################### 93800b3922SMichael Walsh 94800b3922SMichael Walsh 95800b3922SMichael Walsh############################################################################### 96245db7c3SMichael WalshREST Hard Power Off 97245db7c3SMichael Walsh [Documentation] Do "REST Hard Power Off" boot test. 98245db7c3SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 99245db7c3SMichael Walsh 100245db7c3SMichael Walsh # Description of argument(s): 101245db7c3SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 102245db7c3SMichael Walsh # specified in the boot_stack is only 103245db7c3SMichael Walsh # performed if the machine is not already in 104245db7c3SMichael Walsh # the state that would normally result from 105245db7c3SMichael Walsh # running the given boot test. Otherwise, 106245db7c3SMichael Walsh # the test is skipped. If stack_mode is set 107245db7c3SMichael Walsh # to "normal", all tests from the boot_stack 108245db7c3SMichael Walsh # are performed. "skip" mode is useful when 109245db7c3SMichael Walsh # you simply want the machine in a desired 110245db7c3SMichael Walsh # state. The default value is the global 111245db7c3SMichael Walsh # value of "${stack_mode}" 112245db7c3SMichael Walsh # quiet If this parameter is set to ${1}, this 113245db7c3SMichael Walsh # keyword will print only essential 114245db7c3SMichael Walsh # information. The default value is the 115245db7c3SMichael Walsh # global value of "${quiet}" 116245db7c3SMichael Walsh 117245db7c3SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=REST Hard Power Off 118245db7c3SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 119245db7c3SMichael Walsh Run Key U ${cmd_buf} 120245db7c3SMichael Walsh 121245db7c3SMichael Walsh############################################################################### 122245db7c3SMichael Walsh 123245db7c3SMichael Walsh 124245db7c3SMichael Walsh############################################################################### 125800b3922SMichael WalshIPMI Power Off 126800b3922SMichael Walsh [Documentation] Do "IPMI Power Off" boot test. 127ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 128800b3922SMichael Walsh 129ff340006SMichael Walsh # Description of argument(s): 130ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 131ff340006SMichael Walsh # specified in the boot_stack is only 132ff340006SMichael Walsh # performed if the machine is not already in 133ff340006SMichael Walsh # the state that would normally result from 134ff340006SMichael Walsh # running the given boot test. Otherwise, 135ff340006SMichael Walsh # the test is skipped. If stack_mode is set 136ff340006SMichael Walsh # to "normal", all tests from the boot_stack 137ff340006SMichael Walsh # are performed. "skip" mode is useful when 138ff340006SMichael Walsh # you simply want the machine in a desired 139ff340006SMichael Walsh # state. The default value is the global 140ff340006SMichael Walsh # value of "${stack_mode}" 141ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 142ff340006SMichael Walsh # keyword will print only essential 143ff340006SMichael Walsh # information. The default value is the 144ff340006SMichael Walsh # global value of "${quiet}" 145ff340006SMichael Walsh 146ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Off 147ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 148ff340006SMichael Walsh Run Key U ${cmd_buf} 149800b3922SMichael Walsh 150800b3922SMichael Walsh############################################################################### 151800b3922SMichael Walsh 152800b3922SMichael Walsh 153800b3922SMichael Walsh############################################################################### 154800b3922SMichael WalshIPMI Power Soft 155800b3922SMichael Walsh [Documentation] Do "IPMI Power Soft" boot test. 156ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 157800b3922SMichael Walsh 158ff340006SMichael Walsh # Description of argument(s): 159ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 160ff340006SMichael Walsh # specified in the boot_stack is only 161ff340006SMichael Walsh # performed if the machine is not already in 162ff340006SMichael Walsh # the state that would normally result from 163ff340006SMichael Walsh # running the given boot test. Otherwise, 164ff340006SMichael Walsh # the test is skipped. If stack_mode is set 165ff340006SMichael Walsh # to "normal", all tests from the boot_stack 166ff340006SMichael Walsh # are performed. "skip" mode is useful when 167ff340006SMichael Walsh # you simply want the machine in a desired 168ff340006SMichael Walsh # state. The default value is the global 169ff340006SMichael Walsh # value of "${stack_mode}" 170ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 171ff340006SMichael Walsh # keyword will print only essential 172ff340006SMichael Walsh # information. The default value is the 173ff340006SMichael Walsh # global value of "${quiet}" 174ff340006SMichael Walsh 175ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Soft 176ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 177ff340006SMichael Walsh Run Key U ${cmd_buf} 178800b3922SMichael Walsh 179800b3922SMichael Walsh############################################################################### 180800b3922SMichael Walsh 181800b3922SMichael Walsh 182800b3922SMichael Walsh############################################################################### 183800b3922SMichael WalshHost Power Off 184800b3922SMichael Walsh [Documentation] Do "Host Power Off" boot test. 185ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 186800b3922SMichael Walsh 187ff340006SMichael Walsh # Description of argument(s): 188ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 189ff340006SMichael Walsh # specified in the boot_stack is only 190ff340006SMichael Walsh # performed if the machine is not already in 191ff340006SMichael Walsh # the state that would normally result from 192ff340006SMichael Walsh # running the given boot test. Otherwise, 193ff340006SMichael Walsh # the test is skipped. If stack_mode is set 194ff340006SMichael Walsh # to "normal", all tests from the boot_stack 195ff340006SMichael Walsh # are performed. "skip" mode is useful when 196ff340006SMichael Walsh # you simply want the machine in a desired 197ff340006SMichael Walsh # state. The default value is the global 198ff340006SMichael Walsh # value of "${stack_mode}" 199ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 200ff340006SMichael Walsh # keyword will print only essential 201ff340006SMichael Walsh # information. The default value is the 202ff340006SMichael Walsh # global value of "${quiet}" 203ff340006SMichael Walsh 204ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Host Power Off 205ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 206ff340006SMichael Walsh Run Key U ${cmd_buf} 207800b3922SMichael Walsh 208800b3922SMichael Walsh############################################################################### 209800b3922SMichael Walsh 210800b3922SMichael Walsh 211800b3922SMichael Walsh############################################################################### 212800b3922SMichael WalshAPOR 213800b3922SMichael Walsh [Documentation] Do "APOR" boot test. 214ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 215800b3922SMichael Walsh 216ff340006SMichael Walsh # Description of argument(s): 217ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 218ff340006SMichael Walsh # specified in the boot_stack is only 219ff340006SMichael Walsh # performed if the machine is not already in 220ff340006SMichael Walsh # the state that would normally result from 221ff340006SMichael Walsh # running the given boot test. Otherwise, 222ff340006SMichael Walsh # the test is skipped. If stack_mode is set 223ff340006SMichael Walsh # to "normal", all tests from the boot_stack 224ff340006SMichael Walsh # are performed. "skip" mode is useful when 225ff340006SMichael Walsh # you simply want the machine in a desired 226ff340006SMichael Walsh # state. The default value is the global 227ff340006SMichael Walsh # value of "${stack_mode}" 228ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 229ff340006SMichael Walsh # keyword will print only essential 230ff340006SMichael Walsh # information. The default value is the 231ff340006SMichael Walsh # global value of "${quiet}" 232ff340006SMichael Walsh 233ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=APOR 234ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 235ff340006SMichael Walsh Run Key U ${cmd_buf} 236800b3922SMichael Walsh 237800b3922SMichael Walsh############################################################################### 238800b3922SMichael Walsh 239800b3922SMichael Walsh 240800b3922SMichael Walsh############################################################################### 241800b3922SMichael WalshOBMC Reboot (run) 242800b3922SMichael Walsh [Documentation] Do "OBMC Reboot (run)" boot test. 243ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 244800b3922SMichael Walsh 245ff340006SMichael Walsh # Description of argument(s): 246ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 247ff340006SMichael Walsh # specified in the boot_stack is only 248ff340006SMichael Walsh # performed if the machine is not already in 249ff340006SMichael Walsh # the state that would normally result from 250ff340006SMichael Walsh # running the given boot test. Otherwise, 251ff340006SMichael Walsh # the test is skipped. If stack_mode is set 252ff340006SMichael Walsh # to "normal", all tests from the boot_stack 253ff340006SMichael Walsh # are performed. "skip" mode is useful when 254ff340006SMichael Walsh # you simply want the machine in a desired 255ff340006SMichael Walsh # state. The default value is the global 256ff340006SMichael Walsh # value of "${stack_mode}" 257ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 258ff340006SMichael Walsh # keyword will print only essential 259ff340006SMichael Walsh # information. The default value is the 260ff340006SMichael Walsh # global value of "${quiet}" 261ff340006SMichael Walsh 262ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=OBMC Reboot (run) 263ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 264ff340006SMichael Walsh Run Key U ${cmd_buf} 265800b3922SMichael Walsh 266800b3922SMichael Walsh############################################################################### 267800b3922SMichael Walsh 268800b3922SMichael Walsh 269800b3922SMichael Walsh############################################################################### 270800b3922SMichael WalshOBMC Reboot (off) 271800b3922SMichael Walsh [Documentation] Do "OBMC Reboot (off)" boot test. 272ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 273800b3922SMichael Walsh 274ff340006SMichael Walsh # Description of argument(s): 275ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 276ff340006SMichael Walsh # specified in the boot_stack is only 277ff340006SMichael Walsh # performed if the machine is not already in 278ff340006SMichael Walsh # the state that would normally result from 279ff340006SMichael Walsh # running the given boot test. Otherwise, 280ff340006SMichael Walsh # the test is skipped. If stack_mode is set 281ff340006SMichael Walsh # to "normal", all tests from the boot_stack 282ff340006SMichael Walsh # are performed. "skip" mode is useful when 283ff340006SMichael Walsh # you simply want the machine in a desired 284ff340006SMichael Walsh # state. The default value is the global 285ff340006SMichael Walsh # value of "${stack_mode}" 286ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 287ff340006SMichael Walsh # keyword will print only essential 288ff340006SMichael Walsh # information. The default value is the 289ff340006SMichael Walsh # global value of "${quiet}" 290ff340006SMichael Walsh 291ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=OBMC Reboot (off) 292ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 293ff340006SMichael Walsh Run Key U ${cmd_buf} 294800b3922SMichael Walsh 295800b3922SMichael Walsh############################################################################### 296800b3922SMichael Walsh 297800b3922SMichael Walsh 298800b3922SMichael Walsh############################################################################### 299800b3922SMichael WalshPDU AC Cycle (run) 300800b3922SMichael Walsh [Documentation] Do "PDU AC Cycle (run)" boot test. 301ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 302800b3922SMichael Walsh 303ff340006SMichael Walsh # Description of argument(s): 304ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 305ff340006SMichael Walsh # specified in the boot_stack is only 306ff340006SMichael Walsh # performed if the machine is not already in 307ff340006SMichael Walsh # the state that would normally result from 308ff340006SMichael Walsh # running the given boot test. Otherwise, 309ff340006SMichael Walsh # the test is skipped. If stack_mode is set 310ff340006SMichael Walsh # to "normal", all tests from the boot_stack 311ff340006SMichael Walsh # are performed. "skip" mode is useful when 312ff340006SMichael Walsh # you simply want the machine in a desired 313ff340006SMichael Walsh # state. The default value is the global 314ff340006SMichael Walsh # value of "${stack_mode}" 315ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 316ff340006SMichael Walsh # keyword will print only essential 317ff340006SMichael Walsh # information. The default value is the 318ff340006SMichael Walsh # global value of "${quiet}" 319ff340006SMichael Walsh 320ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (run) 321ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 322ff340006SMichael Walsh Run Key U ${cmd_buf} 323800b3922SMichael Walsh 324800b3922SMichael Walsh############################################################################### 325800b3922SMichael Walsh 326800b3922SMichael Walsh 327800b3922SMichael Walsh############################################################################### 328800b3922SMichael WalshPDU AC Cycle (off) 329800b3922SMichael Walsh [Documentation] Do "PDU AC Cycle (off)" boot test. 330ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 331800b3922SMichael Walsh 332ff340006SMichael Walsh # Description of argument(s): 333ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 334ff340006SMichael Walsh # specified in the boot_stack is only 335ff340006SMichael Walsh # performed if the machine is not already in 336ff340006SMichael Walsh # the state that would normally result from 337ff340006SMichael Walsh # running the given boot test. Otherwise, 338ff340006SMichael Walsh # the test is skipped. If stack_mode is set 339ff340006SMichael Walsh # to "normal", all tests from the boot_stack 340ff340006SMichael Walsh # are performed. "skip" mode is useful when 341ff340006SMichael Walsh # you simply want the machine in a desired 342ff340006SMichael Walsh # state. The default value is the global 343ff340006SMichael Walsh # value of "${stack_mode}" 344ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 345ff340006SMichael Walsh # keyword will print only essential 346ff340006SMichael Walsh # information. The default value is the 347ff340006SMichael Walsh # global value of "${quiet}" 348ff340006SMichael Walsh 349ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (off) 350ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 351ff340006SMichael Walsh Run Key U ${cmd_buf} 352800b3922SMichael Walsh 353800b3922SMichael Walsh############################################################################### 354800b3922SMichael Walsh 355800b3922SMichael Walsh 356800b3922SMichael Walsh############################################################################### 357800b3922SMichael WalshIPMI MC Reset Warm (run) 358800b3922SMichael Walsh [Documentation] Do "IPMI MC Reset Warm (run)" boot test. 359ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 360800b3922SMichael Walsh 361ff340006SMichael Walsh # Description of argument(s): 362ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 363ff340006SMichael Walsh # specified in the boot_stack is only 364ff340006SMichael Walsh # performed if the machine is not already in 365ff340006SMichael Walsh # the state that would normally result from 366ff340006SMichael Walsh # running the given boot test. Otherwise, 367ff340006SMichael Walsh # the test is skipped. If stack_mode is set 368ff340006SMichael Walsh # to "normal", all tests from the boot_stack 369ff340006SMichael Walsh # are performed. "skip" mode is useful when 370ff340006SMichael Walsh # you simply want the machine in a desired 371ff340006SMichael Walsh # state. The default value is the global 372ff340006SMichael Walsh # value of "${stack_mode}" 373ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 374ff340006SMichael Walsh # keyword will print only essential 375ff340006SMichael Walsh # information. The default value is the 376ff340006SMichael Walsh # global value of "${quiet}" 377ff340006SMichael Walsh 378ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test 379ff340006SMichael Walsh ... \ loc_boot_stack=IPMI MC Reset Warm (run) 380ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 381ff340006SMichael Walsh Run Key U ${cmd_buf} 382800b3922SMichael Walsh 383800b3922SMichael Walsh############################################################################### 384800b3922SMichael Walsh 385800b3922SMichael Walsh 386800b3922SMichael Walsh############################################################################### 387800b3922SMichael WalshIPMI MC Reset Warm (off) 388800b3922SMichael Walsh [Documentation] Do "IPMI MC Reset Warm (off)" boot test. 389ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 390800b3922SMichael Walsh 391ff340006SMichael Walsh # Description of argument(s): 392ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 393ff340006SMichael Walsh # specified in the boot_stack is only 394ff340006SMichael Walsh # performed if the machine is not already in 395ff340006SMichael Walsh # the state that would normally result from 396ff340006SMichael Walsh # running the given boot test. Otherwise, 397ff340006SMichael Walsh # the test is skipped. If stack_mode is set 398ff340006SMichael Walsh # to "normal", all tests from the boot_stack 399ff340006SMichael Walsh # are performed. "skip" mode is useful when 400ff340006SMichael Walsh # you simply want the machine in a desired 401ff340006SMichael Walsh # state. The default value is the global 402ff340006SMichael Walsh # value of "${stack_mode}" 403ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 404ff340006SMichael Walsh # keyword will print only essential 405ff340006SMichael Walsh # information. The default value is the 406ff340006SMichael Walsh # global value of "${quiet}" 407ff340006SMichael Walsh 408ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test 409ff340006SMichael Walsh ... \ loc_boot_stack=IPMI MC Reset Warm (off) 410ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 411ff340006SMichael Walsh Run Key U ${cmd_buf} 412800b3922SMichael Walsh 413800b3922SMichael Walsh############################################################################### 414800b3922SMichael Walsh 415800b3922SMichael Walsh 416800b3922SMichael Walsh############################################################################### 417800b3922SMichael WalshIPMI Power Cycle 418800b3922SMichael Walsh [Documentation] Do "IPMI Power Cycle" boot test. 419ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 420800b3922SMichael Walsh 421ff340006SMichael Walsh # Description of argument(s): 422ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 423ff340006SMichael Walsh # specified in the boot_stack is only 424ff340006SMichael Walsh # performed if the machine is not already in 425ff340006SMichael Walsh # the state that would normally result from 426ff340006SMichael Walsh # running the given boot test. Otherwise, 427ff340006SMichael Walsh # the test is skipped. If stack_mode is set 428ff340006SMichael Walsh # to "normal", all tests from the boot_stack 429ff340006SMichael Walsh # are performed. "skip" mode is useful when 430ff340006SMichael Walsh # you simply want the machine in a desired 431ff340006SMichael Walsh # state. The default value is the global 432ff340006SMichael Walsh # value of "${stack_mode}" 433ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 434ff340006SMichael Walsh # keyword will print only essential 435ff340006SMichael Walsh # information. The default value is the 436ff340006SMichael Walsh # global value of "${quiet}" 437ff340006SMichael Walsh 438ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Cycle 439ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 440ff340006SMichael Walsh Run Key U ${cmd_buf} 441800b3922SMichael Walsh 442800b3922SMichael Walsh############################################################################### 443800b3922SMichael Walsh 444800b3922SMichael Walsh 445800b3922SMichael Walsh############################################################################### 446800b3922SMichael WalshIPMI Power Reset 447800b3922SMichael Walsh [Documentation] Do "IPMI Power Reset" boot test. 448ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 449800b3922SMichael Walsh 450ff340006SMichael Walsh # Description of argument(s): 451ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 452ff340006SMichael Walsh # specified in the boot_stack is only 453ff340006SMichael Walsh # performed if the machine is not already in 454ff340006SMichael Walsh # the state that would normally result from 455ff340006SMichael Walsh # running the given boot test. Otherwise, 456ff340006SMichael Walsh # the test is skipped. If stack_mode is set 457ff340006SMichael Walsh # to "normal", all tests from the boot_stack 458ff340006SMichael Walsh # are performed. "skip" mode is useful when 459ff340006SMichael Walsh # you simply want the machine in a desired 460ff340006SMichael Walsh # state. The default value is the global 461ff340006SMichael Walsh # value of "${stack_mode}" 462ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 463ff340006SMichael Walsh # keyword will print only essential 464ff340006SMichael Walsh # information. The default value is the 465ff340006SMichael Walsh # global value of "${quiet}" 466ff340006SMichael Walsh 467ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Reset 468ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 469ff340006SMichael Walsh Run Key U ${cmd_buf} 470800b3922SMichael Walsh 471800b3922SMichael Walsh############################################################################### 472800b3922SMichael Walsh 473800b3922SMichael Walsh 474800b3922SMichael Walsh############################################################################### 475800b3922SMichael WalshAuto Reboot 476800b3922SMichael Walsh [Documentation] Do "Auto Reboot" boot test. 477ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 478800b3922SMichael Walsh 479ff340006SMichael Walsh # Description of argument(s): 480ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 481ff340006SMichael Walsh # specified in the boot_stack is only 482ff340006SMichael Walsh # performed if the machine is not already in 483ff340006SMichael Walsh # the state that would normally result from 484ff340006SMichael Walsh # running the given boot test. Otherwise, 485ff340006SMichael Walsh # the test is skipped. If stack_mode is set 486ff340006SMichael Walsh # to "normal", all tests from the boot_stack 487ff340006SMichael Walsh # are performed. "skip" mode is useful when 488ff340006SMichael Walsh # you simply want the machine in a desired 489ff340006SMichael Walsh # state. The default value is the global 490ff340006SMichael Walsh # value of "${stack_mode}" 491ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 492ff340006SMichael Walsh # keyword will print only essential 493ff340006SMichael Walsh # information. The default value is the 494ff340006SMichael Walsh # global value of "${quiet}" 495ff340006SMichael Walsh 496ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Auto Reboot 497ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 498ff340006SMichael Walsh Run Key U ${cmd_buf} 499800b3922SMichael Walsh 500800b3922SMichael Walsh############################################################################### 501800b3922SMichael Walsh 502800b3922SMichael Walsh 503800b3922SMichael Walsh############################################################################### 504800b3922SMichael WalshHost Reboot 505800b3922SMichael Walsh [Documentation] Do "Host Reboot" boot test. 506ff340006SMichael Walsh [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet} 507800b3922SMichael Walsh 508ff340006SMichael Walsh # Description of argument(s): 509ff340006SMichael Walsh # stack_mode If stack_mode is set to "skip", each test 510ff340006SMichael Walsh # specified in the boot_stack is only 511ff340006SMichael Walsh # performed if the machine is not already in 512ff340006SMichael Walsh # the state that would normally result from 513ff340006SMichael Walsh # running the given boot test. Otherwise, 514ff340006SMichael Walsh # the test is skipped. If stack_mode is set 515ff340006SMichael Walsh # to "normal", all tests from the boot_stack 516ff340006SMichael Walsh # are performed. "skip" mode is useful when 517ff340006SMichael Walsh # you simply want the machine in a desired 518ff340006SMichael Walsh # state. The default value is the global 519ff340006SMichael Walsh # value of "${stack_mode}" 520ff340006SMichael Walsh # quiet If this parameter is set to ${1}, this 521ff340006SMichael Walsh # keyword will print only essential 522ff340006SMichael Walsh # information. The default value is the 523ff340006SMichael Walsh # global value of "${quiet}" 524ff340006SMichael Walsh 525ff340006SMichael Walsh ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Host Reboot 526ff340006SMichael Walsh ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet} 527ff340006SMichael Walsh Run Key U ${cmd_buf} 528800b3922SMichael Walsh 529800b3922SMichael Walsh############################################################################### 530800b3922SMichael Walsh 531800b3922SMichael Walsh 532*c28c239cSMichael Walsh# Additional boot test keywords. 533*c28c239cSMichael Walsh############################################################################### 534*c28c239cSMichael WalshSmart Power Off 535*c28c239cSMichael Walsh [Documentation] Do a smart power off. 536*c28c239cSMichael Walsh [Arguments] ${quiet}=${QUIET} 537*c28c239cSMichael Walsh 538*c28c239cSMichael Walsh # A 'Smart Power Off' consists of a 'REST Power Off' with recovery. 539*c28c239cSMichael Walsh # Namely, if the 'REST Power Off' fails, a 'REST Hard Power Off' will 540*c28c239cSMichael Walsh # be attempted. 541*c28c239cSMichael Walsh 542*c28c239cSMichael Walsh # Description of argument(s): 543*c28c239cSMichael Walsh # quiet If this parameter is set to ${1}, this 544*c28c239cSMichael Walsh # keyword will print only essential 545*c28c239cSMichael Walsh # information. The default value is the 546*c28c239cSMichael Walsh # global value of "${quiet}" 547*c28c239cSMichael Walsh 548*c28c239cSMichael Walsh 549*c28c239cSMichael Walsh # OBMC Boot Test will restore global quiet to initial global value. 550*c28c239cSMichael Walsh # Unfortunately, that restore affects our local quiet so we must 551*c28c239cSMichael Walsh # preserve it. 552*c28c239cSMichael Walsh ${loc_quiet}= Set Variable ${quiet} 553*c28c239cSMichael Walsh ${cmd_buf}= Catenate REST Power Off \ stack_mode=skip 554*c28c239cSMichael Walsh ... \ \ quiet=${loc_quiet} 555*c28c239cSMichael Walsh ${status} ${ret_values}= Run Key U ${cmd_buf} ignore=${1} 556*c28c239cSMichael Walsh ... quiet=${loc_quiet} 557*c28c239cSMichael Walsh 558*c28c239cSMichael Walsh Run Keyword If '${status}' == 'PASS' Return From Keyword 559*c28c239cSMichael Walsh 560*c28c239cSMichael Walsh ${cmd_buf}= Catenate REST Hard Power Off \ stack_mode=skip 561*c28c239cSMichael Walsh ... \ \ quiet=${loc_quiet} 562*c28c239cSMichael Walsh Run Key U ${cmd_buf} quiet=${loc_quiet} 563*c28c239cSMichael Walsh 564*c28c239cSMichael Walsh############################################################################### 565