Skip to content
Snippets Groups Projects
Commit 0a66ba63 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

tests-extra: environment variable with custom build path

parent 4103896d
Branches
Tags
1 merge request!587Events refactoring
......@@ -8,10 +8,11 @@ import os, shutil
module_path = os.path.dirname(os.path.realpath(__file__))
repo_path = os.path.realpath(os.path.join(module_path, "..", "..", ".."))
build_path = os.environ.get("KNOT_TEST_BUILD_PATH", repo_path)
def repo_binary(name):
"""Get absolute path to a binary in Knot DNS sources."""
return os.path.join(repo_path, name)
return os.path.join(build_path, name)
def get_binary(env_name, default):
env = os.environ.get(env_name)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment