bugfix: add variable

This commit is contained in:
httprunner
2018-02-14 01:13:06 +08:00
parent d4d9367c70
commit 3f00769d3a

View File

@@ -267,7 +267,10 @@ class Runner(object):
output = {}
for variable in output_variables_list:
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
output[variable] = variables_mapping[variable]