bugfix: add variable

This commit is contained in:
httprunner
2018-02-14 01:13:06 +08:00
parent d4d9367c70
commit 3f00769d3a
+4 -1
View File
@@ -267,7 +267,10 @@ class Runner(object):
output = {} output = {}
for variable in output_variables_list: for variable in output_variables_list:
if variable not in variables_mapping: if variable not in variables_mapping:
logging.warning("variable '{}' can not be found in variables mapping, failed to ouput!") logging.warning(
"variable '{}' can not be found in variables mapping, failed to ouput!"\
.format(variable)
)
continue continue
output[variable] = variables_mapping[variable] output[variable] = variables_mapping[variable]