blob: de35f5d5805b6e771e4b6c9e4aaefd8207c71a8f [file] [log] [blame]
Michael Walshb5839d02017-04-12 16:11:20 -05001*** Settings ***
2Documentation This file is resourced by obmc_boot_test.py to set initial
3... variable values, etc.
4
5Resource ../lib/openbmc_ffdc.robot
6Library ../lib/state.py
7
8Library ../lib/obmc_boot_test.py
Michael Walshff340002017-08-29 11:18:27 -05009Library Collections
Michael Walshb5839d02017-04-12 16:11:20 -050010
11*** Variables ***
12# Initialize program parameters variables.
13# Create parm_list containing all of our program parameters. This is used by
14# 'Rqprint Pgm Header'
15@{parm_list} openbmc_nickname openbmc_host openbmc_username
Michael Walsh0a3bdb42019-01-31 16:21:44 +000016... openbmc_password rest_username rest_password ipmi_username
17... ipmi_password os_host os_username os_password pdu_host pdu_username
18... pdu_password pdu_slot_no openbmc_serial_host openbmc_serial_port
19... stack_mode boot_stack boot_list max_num_tests plug_in_dir_paths
20... status_file_path openbmc_model boot_pass boot_fail ffdc_dir_path_style
21... ffdc_check ffdc_only ffdc_function_list state_change_timeout
22... power_on_timeout power_off_timeout boot_fail_threshold delete_errlogs
Michael Walsh77699612019-07-17 09:47:28 -050023... call_post_stack_plug do_pre_boot_plug_in_setup test_mode quiet debug
Michael Walshb5839d02017-04-12 16:11:20 -050024
25# Initialize each program parameter.
Michael Walsh77699612019-07-17 09:47:28 -050026${openbmc_host} ${EMPTY}
27${openbmc_nickname} ${openbmc_host}
28${openbmc_username} root
29${openbmc_password} 0penBmc
30${rest_username} ${openbmc_username}
31${rest_password} ${openbmc_password}
32${ipmi_username} ${openbmc_username}
33${ipmi_password} ${openbmc_password}
34${os_host} ${EMPTY}
35${os_username} root
36${os_password} P@ssw0rd
37${pdu_host} ${EMPTY}
38${pdu_username} admin
39${pdu_password} admin
40${pdu_slot_no} ${EMPTY}
41${openbmc_serial_host} ${EMPTY}
42${openbmc_serial_port} ${EMPTY}
43${stack_mode} normal
44${boot_stack} ${EMPTY}
45${boot_list} ${EMPTY}
46${max_num_tests} 0
47${plug_in_dir_paths} ${EMPTY}
48${status_file_path} ${EMPTY}
49${openbmc_model} ${EMPTY}
Michael Walshb5839d02017-04-12 16:11:20 -050050# The reason boot_pass and boot_fail are parameters is that it is possible to
51# be called by a program that has already done some tests. This allows us to
52# keep the grand total.
Michael Walsh77699612019-07-17 09:47:28 -050053${boot_pass} ${0}
54${boot_fail} ${0}
55${ffdc_dir_path_style} ${EMPTY}
56${ffdc_check} ${EMPTY}
57${ffdc_only} ${0}
58${ffdc_function_list} ${EMPTY}
59${state_change_timeout} 3 mins
60${power_on_timeout} 14 mins
61${power_off_timeout} 2 mins
Michael Walshb5839d02017-04-12 16:11:20 -050062# If the number of boot failures, exceeds boot_fail_threshold, this program
63# returns non-zero.
Michael Walsh77699612019-07-17 09:47:28 -050064${boot_fail_threshold} ${0}
65${delete_errlogs} ${0}
Michael Walsh89de14a2018-10-01 16:51:37 -050066# This variable indicates whether post_stack plug-in processing should be done.
Michael Walsh77699612019-07-17 09:47:28 -050067${call_post_stack_plug} ${1}
68# do_pre_boot_plug_in_setup is only heeded when -v ffdc_only:1. Callers may
69# choose whether to run pre_boot_plug_in_setup which clears existing FFDC file
70# lists and sets new ffdc_prefix value.
71${do_pre_boot_plug_in_setup} ${1}
72${test_mode} 0
73${quiet} 0
74${debug} 0
Michael Walshb5839d02017-04-12 16:11:20 -050075
76# Flag variables.
77# test_really_running is needed by DB_Logging plug-in.
78${test_really_running} ${1}
79
Michael Walsh83f4bc72017-04-20 16:49:43 -050080
81*** Keywords ***
Michael Walsh83f4bc72017-04-20 16:49:43 -050082OBMC Boot Test
Joy Onyerikwuf4a807b2018-06-20 08:43:54 -050083 [Documentation] Run the OBMC boot test.
Michael Walsh83f4bc72017-04-20 16:49:43 -050084 [Teardown] OBMC Boot Test Teardown
Michael Walshff340002017-08-29 11:18:27 -050085 [Arguments] ${pos_arg1}=${EMPTY} &{arguments}
Michael Walsh83f4bc72017-04-20 16:49:43 -050086
87 # Note: If I knew how to specify a keyword teardown in python, I would
88 # rename the "OBMC Boot Test Py" python function to "OBMC Boot Test" and
89 # do away with this robot keyword.
90
Michael Walshff340002017-08-29 11:18:27 -050091 Run Keyword If '${pos_arg1}' != '${EMPTY}'
92 ... Set To Dictionary ${arguments} loc_boot_stack=${pos_arg1}
93
94 OBMC Boot Test Py &{arguments}