]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
tests-extra: fix the "knottest-last" symlink creation
authorDavid Vašek <david.vasek@nic.cz>
Tue, 22 Dec 2020 20:03:03 +0000 (21:03 +0100)
committerDavid Vašek <david.vasek@nic.cz>
Tue, 22 Dec 2020 20:03:03 +0000 (21:03 +0100)
tests-extra/runtests.py

index 6db875aea779ec771a5bc6c37cade6b750f17b04..a0e522a0f9fa3e84c9322b8ea1996018dae141cb 100755 (executable)
@@ -262,7 +262,7 @@ def main(args):
     # Try to create symlink to the latest result.
     last_link = os.path.join(params.home_dir, "knottest-last")
     try:
-        if os.path.exists(last_link):
+        if os.path.lexists(last_link):
             os.remove(last_link)
         os.symlink(outs_dir, last_link)
     except: