From 0d204d2a8fa78820ead102e8fae9bdf6f4074488 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Fri, 6 Apr 2018 12:04:14 +1000 Subject: [PATCH] tools: Missed this when specifying tools in the yaml file. --- tests/tools_test.py | 2 +- vigil/tools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tools_test.py b/tests/tools_test.py index 01e0d99..ec37d0e 100755 --- a/tests/tools_test.py +++ b/tests/tools_test.py @@ -46,7 +46,7 @@ def chdir(path): 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) diff --git a/vigil/tools.py b/vigil/tools.py index 55cb511..5e06036 100644 --- a/vigil/tools.py +++ b/vigil/tools.py @@ -639,7 +639,7 @@ with open(tools_yaml_path) as tools_yaml_file: tools_yaml = yaml.load(tools_yaml_file.read()) for tool_name, tool_yaml in tools_yaml.items(): 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 #############################