Michael Walsh | b5839d0 | 2017-04-12 16:11:20 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation This file is resourced by obmc_boot_test.py to set initial |
| 3 | ... variable values, etc. |
| 4 | |
| 5 | Resource ../lib/openbmc_ffdc.robot |
| 6 | Library ../lib/state.py |
| 7 | |
| 8 | Library ../lib/obmc_boot_test.py |
| 9 | |
| 10 | *** Variables *** |
| 11 | # Initialize program parameters variables. |
| 12 | # Create parm_list containing all of our program parameters. This is used by |
| 13 | # 'Rqprint Pgm Header' |
| 14 | @{parm_list} openbmc_nickname openbmc_host openbmc_username |
| 15 | ... openbmc_password os_host os_username os_password pdu_host |
| 16 | ... pdu_username pdu_password pdu_slot_no openbmc_serial_host |
| 17 | ... openbmc_serial_port stack_mode boot_stack boot_list max_num_tests |
| 18 | ... plug_in_dir_paths status_file_path openbmc_model boot_pass boot_fail |
Michael Walsh | 83f4bc7 | 2017-04-20 16:49:43 -0500 | [diff] [blame] | 19 | ... ffdc_dir_path_style ffdc_check ffdc_only ffdc_function_list |
| 20 | ... state_change_timeout power_on_timeout power_off_timeout |
| 21 | ... boot_fail_threshold test_mode quiet debug |
Michael Walsh | b5839d0 | 2017-04-12 16:11:20 -0500 | [diff] [blame] | 22 | |
| 23 | # Initialize each program parameter. |
| 24 | ${openbmc_host} ${EMPTY} |
| 25 | ${openbmc_nickname} ${openbmc_host} |
| 26 | ${openbmc_username} root |
| 27 | ${openbmc_password} 0penBmc |
| 28 | ${os_host} ${EMPTY} |
| 29 | ${os_username} root |
| 30 | ${os_password} P@ssw0rd |
| 31 | ${pdu_host} ${EMPTY} |
| 32 | ${pdu_username} admin |
| 33 | ${pdu_password} admin |
| 34 | ${pdu_slot_no} ${EMPTY} |
| 35 | ${openbmc_serial_host} ${EMPTY} |
| 36 | ${openbmc_serial_port} ${EMPTY} |
| 37 | ${stack_mode} normal |
| 38 | ${boot_stack} ${EMPTY} |
| 39 | ${boot_list} ${EMPTY} |
| 40 | ${max_num_tests} 0 |
| 41 | ${plug_in_dir_paths} ${EMPTY} |
| 42 | ${status_file_path} ${EMPTY} |
| 43 | ${openbmc_model} ${EMPTY} |
| 44 | # The reason boot_pass and boot_fail are parameters is that it is possible to |
| 45 | # be called by a program that has already done some tests. This allows us to |
| 46 | # keep the grand total. |
| 47 | ${boot_pass} ${0} |
| 48 | ${boot_fail} ${0} |
| 49 | ${ffdc_dir_path_style} ${EMPTY} |
| 50 | ${ffdc_check} ${EMPTY} |
Michael Walsh | 83f4bc7 | 2017-04-20 16:49:43 -0500 | [diff] [blame] | 51 | ${ffdc_only} ${0} |
| 52 | ${ffdc_function_list} ${EMPTY} |
Michael Walsh | b5839d0 | 2017-04-12 16:11:20 -0500 | [diff] [blame] | 53 | ${state_change_timeout} 3 mins |
| 54 | ${power_on_timeout} 14 mins |
| 55 | ${power_off_timeout} 2 mins |
Michael Walsh | b5839d0 | 2017-04-12 16:11:20 -0500 | [diff] [blame] | 56 | # If the number of boot failures, exceeds boot_fail_threshold, this program |
| 57 | # returns non-zero. |
| 58 | ${boot_fail_threshold} ${1000000} |
| 59 | ${test_mode} 0 |
| 60 | ${quiet} 0 |
| 61 | ${debug} 0 |
| 62 | |
| 63 | # Flag variables. |
| 64 | # test_really_running is needed by DB_Logging plug-in. |
| 65 | ${test_really_running} ${1} |
| 66 | |
Michael Walsh | 83f4bc7 | 2017-04-20 16:49:43 -0500 | [diff] [blame] | 67 | |
| 68 | *** Keywords *** |
| 69 | ############################################################################### |
| 70 | OBMC Boot Test |
| 71 | [Teardown] OBMC Boot Test Teardown |
| 72 | [Arguments] @{arguments} |
| 73 | |
| 74 | # Note: If I knew how to specify a keyword teardown in python, I would |
| 75 | # rename the "OBMC Boot Test Py" python function to "OBMC Boot Test" and |
| 76 | # do away with this robot keyword. |
| 77 | |
| 78 | OBMC Boot Test Py @{arguments} |
| 79 | |
| 80 | ############################################################################### |