From 0a66ba63ca757b56da90a7451968ca3db5b890c4 Mon Sep 17 00:00:00 2001 From: Jan Vcelak <jv@fcelda.cz> Date: Sat, 19 Nov 2016 16:00:02 +0100 Subject: [PATCH] tests-extra: environment variable with custom build path --- tests-extra/tools/dnstest/params.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests-extra/tools/dnstest/params.py b/tests-extra/tools/dnstest/params.py index f1c1de8988..3fc5aefeef 100644 --- a/tests-extra/tools/dnstest/params.py +++ b/tests-extra/tools/dnstest/params.py @@ -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) -- GitLab