tools: Missed this when specifying tools in the yaml file.

This commit is contained in:
Andrew Hamilton 2018-04-06 12:04:14 +10:00
parent 44abbfe53d
commit 0d204d2a8f
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ def chdir(path):
def result_path(tool, input_filename): def result_path(tool, input_filename):
filename = tool.__qualname__ + "-" + input_filename.replace(".", "_") filename = tool.__name__ + "-" + input_filename.replace(".", "_")
return os.path.join(VIGIL_ROOT, "golden-files", "results", filename) return os.path.join(VIGIL_ROOT, "golden-files", "results", filename)

View file

@ -639,7 +639,7 @@ with open(tools_yaml_path) as tools_yaml_file:
tools_yaml = yaml.load(tools_yaml_file.read()) tools_yaml = yaml.load(tools_yaml_file.read())
for tool_name, tool_yaml in tools_yaml.items(): for tool_name, tool_yaml in tools_yaml.items():
tool_func = make_tool_function(**tool_yaml) tool_func = make_tool_function(**tool_yaml)
tool_func.__name__ = tool_name tool_func.__name__ = tool_func.__qualname__ = tool_name
globals()[tool_name] = tool_func globals()[tool_name] = tool_func
############################# #############################