Skip to content
Snippets Groups Projects
Commit a510f04c authored by Daniel Salzman's avatar Daniel Salzman
Browse files

func-test: create symlink to the latest result

parent a50ad00b
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ import dnstest.utils
TESTS_DIR = "tests"
COMMON_DATA_DIR = "data"
LAST_WORKING_DIR = "/tmp/knottest-last"
def save_traceback(outdir):
file = open(params.out_dir + "/traceback.log", mode="a")
......@@ -75,6 +76,14 @@ def main(args):
today = time.strftime("%Y-%m-%d", time.localtime(timestamp))
outs_dir = tempfile.mkdtemp(prefix="knottest-%s-" % timestamp)
# Try to create symlink to the latest result.
try:
if os.path.exists(LAST_WORKING_DIR):
os.remove(LAST_WORKING_DIR)
os.symlink(outs_dir, LAST_WORKING_DIR)
except:
pass
# Set up logging.
log = logging.getLogger()
log.setLevel(logging.NOTSET)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment