Commit e8134304 authored by Daniel Salzman's avatar Daniel Salzman

func-tests: add option for outputs directory specification

parent 510a0be9
......@@ -8,7 +8,7 @@ import dnstest.utils
TESTS_DIR = "tests"
COMMON_DATA_DIR = "data"
LAST_WORKING_DIR = "/tmp/knottest-last"
LAST_WORKING_DIR = params.outs_dir + "/knottest-last"
def save_traceback(outdir):
file = open(params.out_dir + "/traceback.log", mode="a")
......@@ -74,7 +74,8 @@ def main(args):
timestamp = int(time.time())
today = time.strftime("%Y-%m-%d", time.localtime(timestamp))
outs_dir = tempfile.mkdtemp(prefix="knottest-%s-" % timestamp)
outs_dir = tempfile.mkdtemp(prefix="knottest-%s-" % timestamp,
dir=params.outs_dir)
# Try to create symlink to the latest result.
try:
......
......@@ -48,6 +48,9 @@ bind_ctl = get_binary("KNOT_TEST_BINDC", "rndc")
# KNOT_TEST_NSDC - Nsd control binary.
#nsd_ctl = get_binary("KNOT_TEST_NSDC", "nsdc")
# KNOT_TEST_OUTS_DIR - working directories location.
outs_dir = get_param("KNOT_TEST_OUTS_DIR", "/tmp")
# Common data directory (e.g. zone files).
common_data_dir = ""
......
Markdown is supported
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