Home
last modified time | relevance | path

Searched refs:var_value (Results 1 – 11 of 11) sorted by relevance

/openbmc/openbmc-test-automation/lib/
H A Dgen_valid.py154 def valid_type(var_value, required_type, var_name=None): argument
171 if type(var_value) in required_type:
174 if type(var_value) is required_type:
181 var_name, var_value, gp.blank() | gp.show_type()
189 def valid_value(var_value, valid_values=[], invalid_values=[], var_name=None): argument
242 if var_value in valid_values:
247 var_name, var_value, gp.blank() | gp.verbose() | gp.show_type()
262 if var_value not in invalid_values:
268 var_name, var_value, gp.blank() | gp.verbose() | gp.show_type()
277 def valid_range(var_value, lower=None, upper=None, var_name=None): argument
[all …]
H A Dgen_robot_valid.py27 var_value = BuiltIn().get_variable_value("${" + var_name + "}")
28 if var_value is None:
29 var_value = "<undefined>"
31 var_value, invalid_values=[var_value], var_name=var_name
35 return var_value
52 var_value = valid_var_name(var_name)
56 return var_value, args, kwargs
132 var_value, args, kwargs = valid_init(var_name, *args, **kwargs)
134 var_value, *args, var_name=var_name, **kwargs
140 var_value, args, kwargs = valid_init(var_name, *args, **kwargs)
[all …]
H A Dvalid.tcl29 upvar $stack_level $var_name var_value
52 if { [lsearch -exact $valid_values "${var_value}"] != -1 } { return }
54 append error_message [sprint_varx $var_name $var_value "" "" 1]
71 if { [lsearch -exact $invalid_values "${var_value}"] == -1 } { return }
73 if { [lsearch -exact $valid_values "${var_value}"] != -1 } { return }
75 append error_message [sprint_varx $var_name $var_value "" "" 1]
128 upvar $stack_level $var_name var_value
133 foreach list_entry $var_value {
192 upvar $stack_level $var_name var_value
194 if { [catch {format "0x%08x" "$var_value"} result] } {
[all …]
H A Dgen_print.py35 var_value = BuiltIn().get_variable_value("${SUITE_NAME}", "")
740 def is_dict(var_value): argument
752 if isinstance(var_value, dict):
755 if isinstance(var_value, collections.OrderedDict):
760 if isinstance(var_value, DotDict):
765 if isinstance(var_value, NormalizedDict):
770 if str(type(var_value)).split("'")[1] == "dictproxy":
997 var_value, argument
1092 type_str = "<" + str(type(var_value)).split("'")[1] + ">"
1098 if type(var_value) in simple_types:
[all …]
H A Dprint.tcl326 proc sprint_varx { var_name var_value { indent 0 } { width {} } { hex 0 } } {
374 if { [catch {format "0x%08x" "$var_value"} result] } {
375 if { $var_value == "" } { set var_value "<blank>" }
382 "$var_value"]"
385 "$var_value"]"
446 upvar $upvar_level $var_name var_value
449 if { [array exists var_value] } {
458 set search_token [array startsearch var_value]
459 while {[array anymore var_value $search_token]} {
460 set key [array nextelement var_value $search_token]
[all …]
H A Dgen_plug_in_utils.py439 def save_plug_in_value(var_value=None, plug_in_package_name=None, **kwargs): argument
469 if var_value is None:
471 var_value = kwargs[var_name]
478 gp.qprint_varx(var_name, var_value)
479 gc.shell_cmd("echo '" + str(var_value) + "' > " + save_file_path)
533 var_value = gm.file_to_list(
538 var_value = var_value == "True"
541 var_value = int(var_value)
543 var_value = default
550 gp.qprint_varx(var_name, var_value)
[all …]
H A Dvar_stack.py102 def push(self, var_value, var_name=""): argument
119 self.__stack_dict[var_name].append(var_value)
121 self.__stack_dict[var_name] = copy.deepcopy([var_value])
H A Dgen_arg.py213 def set_pgm_arg(var_value, var_name=None): argument
227 arg_obj.__dict__[var_name] = var_value
229 setattr(module, var_name, var_value)
231 __builtin__.quiet = var_value
233 __builtin__.debug = var_value
235 __builtin__.test_mode = var_value
H A Dgen_robot_print.py41 var_value = BuiltIn().get_variable_value("${" + str(var_name) + "}")
42 buffer += gp.sprint_varx(var_name, var_value, **kwargs)
H A Dgen_misc.py225 def global_default(var_value, default=0): argument
245 return dft(var_value, get_mod_global(var_name, 0))
248 def set_mod_global(var_value, mod_name="__main__", var_name=None): argument
272 setattr(module, var_name, var_value)
H A Dobmc_boot_test.py342 var_value = BuiltIn().get_variable_value("${" + var_name + "}")
344 if var_value is None:
345 var_value = ""
346 os.environ["AUTOBOOT_" + var_name] = str(var_value)
401 var_value = BuiltIn().get_variable_value("${" + var_name + "}")
403 if var_value is None:
404 var_value = ""
405 os.environ["AUTOBOOT_" + var_name] = str(var_value)