From: Tharushi Jayasekara Date: Fri, 15 Jan 2021 17:22:32 +0000 (+0530) Subject: run: support symlink for test directories X-Git-Tag: suricata-6.0.4~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5129fcc572977d4e4168e61d4fb13dcb8d5c9ead;p=thirdparty%2Fsuricata-verify.git run: support symlink for test directories --- diff --git a/run.py b/run.py index 9326764cf..095be190d 100755 --- a/run.py +++ b/run.py @@ -876,7 +876,7 @@ def main(): tdir = os.path.abspath(args.testdir) # First gather the tests so we can run them in alphabetic order. tests = [] - for dirpath, dirnames, filenames in os.walk(tdir): + for dirpath, dirnames, filenames in os.walk(tdir, followlinks = True): # The top directory is not a test... if dirpath == os.path.join(TOPDIR, "tests"): continue