| /openbmc/openbmc-test-automation/lib/ |
| H A D | tools.exp | 113 append cmd_buf "global spawn_id\n" 114 append cmd_buf "global expect_out\n" 115 append cmd_buf "expect {\n" 129 append cmd_buf " ${flag} {$pattern} {set expect_result $ix}\n" 133 append cmd_buf " timeout {handle_timeout \$message}\n" 135 append cmd_buf " timeout {set expect_result \[expect_wrap_timeout\]}\n" 137 append cmd_buf " eof {handle_eof \$message}\n" 138 append cmd_buf "}\n" 141 dprint_issuing "\n${cmd_buf}" 142 eval ${cmd_buf} [all …]
|
| H A D | gen_robot_plug_in.py | 29 cmd_buf = 'validate_plug_ins.py "' + plug_in_dir_paths + '"' 30 rc, out_buf = gc.shell_cmd(cmd_buf, print_output=0) 148 cmd_buf = sub_cmd_buf + " > " + temp_file_path + " 2>&1" 150 cmd_buf = ( 157 gp.print_issuing(cmd_buf) 163 sub_proc = subprocess.Popen(cmd_buf, shell=True, executable="/bin/bash") 170 cmd_buf = "egrep '" + regex + "' " + temp_file_path 172 cmd_buf, 194 cmd_buf = ( 202 gp.dprint_issuing(cmd_buf) [all …]
|
| H A D | call_stack.tcl | 24 set cmd_buf "sed -re 's/\[\\\{\\\}]//g' $file_path | egrep" 25 append cmd_buf " '${proc_regex}${name_regex}[ ]' | sed -re" 26 append cmd_buf " 's/${proc_regex}(\[^ \]+).*/\\1/g'" 27 return [split [eval exec bash -c {$cmd_buf}] "\n"] 96 set cmd_buf "set proc_name \[info level $level\]" 98 set cmd_buf "set proc_name \[lindex \[info level $level\] 0\]" 101 if { [ catch $cmd_buf result ] } {
|
| H A D | bmc_ssh_utils.py | 15 cmd_buf, argument 80 cmd_buf = "sudo -i " + cmd_buf 82 cmd_buf, 96 cmd_buf, argument 155 cmd_buf, 169 cmd_buf, argument 226 cmd_buf, 238 def device_write(cmd_buf, print_out=0, quiet=None, test_mode=None): argument 290 cmd_buf,
|
| H A D | openbmc_ffdc.py | 92 cmd_buf = ["Create Directory", ffdc_dir_path] 93 gp.qprint_issuing(cmd_buf) 94 status, output = BuiltIn().run_keyword_and_ignore_error(*cmd_buf) 137 cmd_buf = ["Get Current Time Stamp"] 138 gp.dprint_issuing(cmd_buf) 139 FFDC_TIME = BuiltIn().run_keyword(*cmd_buf) 176 cmd_buf = ["Get Test Dir and Name"] 177 gp.print_issuing(cmd_buf) 178 suitename, testname = BuiltIn().run_keyword(*cmd_buf)
|
| H A D | firmware_utils.py | 64 cmd_buf = ( 67 stdout, stderr, rc = bsu.os_execute_command(cmd_buf) 71 cmd_buf = "lsblk -P " + device + " | sed -re 's/\" /\"\\n/g'" 72 stdout, stderr, rc = bsu.os_execute_command(cmd_buf)
|
| H A D | ipmi_utils.py | 117 cmd_buf = IPMI_INBAND_CMD + " " + cmd_string 119 cmd_buf, print_out=print_output, ignore_err=ignore_err 123 cmd_buf = ic.create_ipmi_ext_command_string(cmd_string, **options) 125 cmd_buf, 185 cmd_buf = ( 192 cmd_buf, ipmi_cmd_type, print_output=0 197 cmd_buf = "lan print " + channel_number + " | grep -E -v '^[ ]+: '" 199 cmd_buf, ipmi_cmd_type, print_output=0 578 cmd_buf = "channel getciphers ipmi | sed -re 's/ Alg/_Alg/g'" 579 stdout, stderr, rc = execute_ipmi_cmd(cmd_buf, "external", print_output=0) [all …]
|
| H A D | state.py | 571 cmd_buf = "os_state['" + sub_state + "'] = str(" + sub_state + ")" 572 exec(cmd_buf) 702 cmd_buf = ( 708 cmd_buf, print_output=0, show_err=0, ignore_err=1 720 cmd_buf = [ 727 gp.qprint_issuing(cmd_buf, 0) 731 "10 sec", "5 sec", *cmd_buf 741 cmd_buf = ["BMC Execute Command", date_cmd_buf, "quiet=${1}"] 743 gp.print_issuing(cmd_buf) 745 *cmd_buf [all …]
|
| H A D | data_proc.tcl | 61 set cmd_buf "lappend new_list ${expression}" 62 eval $cmd_buf 84 set cmd_buf "set result \[${expression}\]" 85 eval $cmd_buf 312 eval $cmd_buf 323 eval $cmd_buf
|
| H A D | print.tcl | 124 proc my_time { cmd_buf { iterations 100 } } { 136 print_issuing $cmd_buf 137 set result [time {uplevel 1 $cmd_buf} $iterations] 667 proc sprint_issuing { { cmd_buf "" } { test_mode 0 } } { 682 if { $cmd_buf == "" } { 683 set cmd_buf [get_stack_var cmd_buf {} 2] 690 append buffer "Issuing: ${cmd_buf}\n" 819 set cmd_buf "global $parm_name ; append buffer" 820 append cmd_buf " \[sprint_var $parm_name $indent $width\]" 821 eval $cmd_buf [all …]
|
| H A D | boot_utils.robot | 29 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=REST Power On 31 Run Key U ${cmd_buf} 55 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Redfish Power On 57 Run Key U ${cmd_buf} 81 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power On 83 Run Key U ${cmd_buf} 107 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=REST Power Off 109 Run Key U ${cmd_buf} 133 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Redfish Power Off 135 Run Key U ${cmd_buf} [all …]
|
| H A D | obmc_boot_test.py | 179 cmd_buf = ( 192 exec(cmd_buf) 228 cmd_buf = "global " + parm + " ; " + parm + " = " + sub_cmd 229 gp.dpissuing(cmd_buf) 230 exec(cmd_buf) 232 cmd_buf = "process_host(" + parm + ", '" + parm + "')" 233 exec(cmd_buf) 238 cmd_buf = "gp.register_passwords(" + parm + ")" 239 exec(cmd_buf) 783 cmd_buf = ( [all …]
|
| H A D | cmd.tcl | 8 proc cmd_fnc { cmd_buf { quiet {} } { test_mode {} } { print_output {} }\ 55 qpissuing $cmd_buf $test_mode 61 if { [ catch {set out_buf [eval exec bash -c {$cmd_buf}]} result ] } {
|
| H A D | gen_robot_print.py | 155 cmd_buf = "rpvar = rpvars" variable 156 gp_debug_print("\n" + cmd_buf + "\n") 157 exec(cmd_buf)
|
| H A D | gen_cmd.py | 30 cmd_buf, argument 64 gp.print_vars(cmd_buf, quiet, test_mode, debug) 66 err_msg = gv.valid_value(cmd_buf) 71 gp.pissuing(cmd_buf, test_mode) 86 cmd_buf, 139 cmd_buf, argument 154 cmd_buf, 426 cmd_buf = "time.sleep(" + str(retry_sleep_time) + ")" 428 func_out_buf += gp.sprint_issuing(cmd_buf) 429 exec(cmd_buf)
|
| /openbmc/openbmc-test-automation/bin/ |
| H A D | jenkins_funcs.sh | 132 local cmd_buf 138 cmd_buf="${parm_name}=\"\${dft_${parm_name}}\"" 139 eval ${cmd_buf} 165 cmd_buf="docker run --user=root --env=HOME=${HOME} --env=PYTHONPATH=${HOME}" 166 cmd_buf="${cmd_buf}/openbmc-test-automation/lib --workdir=${HOME} --volume" 167 cmd_buf="${cmd_buf}=${git_dir_path}:${HOME} --volume=${WORKSPACE}:/status_" 168 cmd_buf="${cmd_buf}dir --tty ${DOCKER_IMG_NAME} python -m ${robot_cmd_buf}" 171 eval "${cmd_buf}"
|
| H A D | auto_status_file.py | 159 cmd_buf = ( 168 qprint_issuing(cmd_buf) 169 sub_proc = subprocess.Popen(cmd_buf, shell=True) 176 cmd_buf = ( 183 rc, output = shell_cmd(cmd_buf) 199 cmd_buf = ( 205 qprint_issuing(cmd_buf) 206 sub_proc = subprocess.Popen(cmd_buf, shell=True) 260 cmd_buf = command_string + " >> " + status_file_path + " 2>&1" 261 shell_rc, output = shell_cmd(cmd_buf, show_err=0)
|
| H A D | sol_utils.tcl | 67 set cmd_buf os_logoff 69 eval ${cmd_buf} 71 set cmd_buf sol_logoff 73 eval ${cmd_buf} 121 set cmd_buf "spawn -nottycopy ssh -p $host_sol_port $openbmc_username@$openbmc_host" 123 eval $cmd_buf 358 set cmd_buf os_login 360 eval ${cmd_buf} 433 set cmd_buf os_login 435 eval ${cmd_buf} [all …]
|
| H A D | ssh_pw | 35 set cmd_buf "sed -i ${line_num}d ${file_path}" 36 puts "Issuing: ${cmd_buf}" 37 eval exec bash -c {$cmd_buf}
|
| H A D | process_plug_in_packages.py | 212 cmd_buf = "PATH=" + plug_in_dir_path.rstrip("/") + ":${PATH}" 213 print_issuing(cmd_buf) 217 cmd_buf = auto_status_file_subcmd + cp_prefix + call_point 218 print_issuing(cmd_buf) 220 sub_proc = subprocess.Popen(cmd_buf, shell=True)
|
| /openbmc/qemu/util/ |
| H A D | readline.c | 50 memcmp(rs->cmd_buf, rs->last_cmd_buf, rs->cmd_buf_size) != 0) { in readline_update() 54 rs->cmd_buf[rs->cmd_buf_size] = '\0'; in readline_update() 56 len = strlen(rs->cmd_buf); in readline_update() 61 rs->printf_func(rs->opaque, "%s", rs->cmd_buf); in readline_update() 64 memcpy(rs->last_cmd_buf, rs->cmd_buf, rs->cmd_buf_size); in readline_update() 88 memmove(rs->cmd_buf + rs->cmd_buf_index + 1, in readline_insert_char() 89 rs->cmd_buf + rs->cmd_buf_index, in readline_insert_char() 91 rs->cmd_buf[rs->cmd_buf_index] = ch; in readline_insert_char() 114 memmove(rs->cmd_buf + rs->cmd_buf_index, in readline_delete_char() 115 rs->cmd_buf + rs->cmd_buf_index + 1, in readline_delete_char() [all …]
|
| /openbmc/openbmc-test-automation/extended/ |
| H A D | run_keyword.py | 101 cmd_buf = keyword_string.split(" ") 102 if re.match(r"\$\{", cmd_buf[0]): 107 var_name = cmd_buf[0].strip("${}=") 108 del cmd_buf[0] 113 gp.print_issuing(cmd_buf, test_mode) 117 output = BuiltIn().run_keyword(*cmd_buf)
|
| /openbmc/openbmc-test-automation/gui/lib/ |
| H A D | utils_get_version.py | 22 cmd_buf = "import " + module_name 23 exec(cmd_buf) 24 cmd_buf = ( variable 31 exec(cmd_buf)
|
| /openbmc/u-boot/drivers/spi/ |
| H A D | cadence_qspi.c | 193 u8 *cmd_buf = priv->cmd_buf; in cadence_spi_xfer() local 201 memcpy(cmd_buf, dout, priv->cmd_len); in cadence_spi_xfer() 240 base, priv->cmd_len, cmd_buf, in cadence_spi_xfer() 246 priv->cmd_len, cmd_buf, in cadence_spi_xfer() 251 priv->cmd_len, dm_plat->mode, cmd_buf); in cadence_spi_xfer() 259 (plat, priv->cmd_len, cmd_buf); in cadence_spi_xfer() 272 memset(cmd_buf, 0, sizeof(priv->cmd_buf)); in cadence_spi_xfer()
|
| H A D | atcspi200_spi.c | 85 u8 cmd_buf[16]; member 162 ns->regs->data = ns->cmd_buf[i]; in __atcspi200_spi_start() 198 u8 *cmd_buf = ns->cmd_buf; in __atcspi200_spi_xfer() local 208 memcpy(cmd_buf, data_out, cmd_len); in __atcspi200_spi_xfer() 226 memcpy(cmd_buf, data_out, cmd_len); in __atcspi200_spi_xfer() 275 ns->cmd_buf[1] += ((tran_len>>16)&0xff); in __atcspi200_spi_xfer() 276 ns->cmd_buf[2] += ((tran_len>>8)&0xff); in __atcspi200_spi_xfer() 277 ns->cmd_buf[3] += ((tran_len)&0xff); in __atcspi200_spi_xfer()
|