Skip all dot files/directories when running tests

pull/4243/head
Guillermo Ignacio Enriquez Gutierrez 7 years ago
parent 6f4ba8b2f4
commit 5262aac977
  1. 2
      run_project_tests.py

@ -393,7 +393,7 @@ def _run_test(testdir, test_build_dir, install_dir, extra_args, compiler, backen
def gather_tests(testdir: Path):
tests = [t.name for t in testdir.glob('*')]
tests = [t for t in tests if t != '.DS_Store'] # Filter non-tests files (macOS Finder indexing files, etc)
tests = [t for t in tests if not t.startswith('.')] # Filter non-tests files (dot files, etc)
testlist = [(int(t.split()[0]), t) for t in tests]
testlist.sort()
tests = [testdir / t[1] for t in testlist]

Loading…
Cancel
Save