Ensured tests can be run from any directory.

This commit is contained in:
Andrew Hamilton 2016-11-10 01:14:14 +01:00
parent 065d62d2fc
commit c2aca79428
2 changed files with 4 additions and 2 deletions

View file

@ -41,7 +41,7 @@ def result_path(tool, input_filename):
def run_tool(tool, input_filename):
with chdir("golden-files"):
with chdir(os.path.join(VIGIL_ROOT, "golden-files")):
return tool(os.path.join(".", "input", input_filename))