test: Don't search tests in third-party dir
@@ -255,7 +255,8 @@ if args.TEST:
tests = [TestCase(p, Path(os.path.realpath(p))) for p in args.TEST]
else:
suffices = ["sv", "v", "vhd"]
- globs = [test_dir.glob("**/*."+suffix) for suffix in suffices]
+ third_party = test_dir/"third-party"
+ globs = [[p for p in test_dir.glob("**/*."+suffix) if third_party not in p.parents] for suffix in suffices]
tests = [TestCase(p.relative_to(test_dir), p) for p in sorted(itertools.chain(*globs))]
sys.stdout.write("running {} tests\n".format(len(tests)))
