Skip to content

Commit

Permalink
tests: Improve ignore list
Browse files Browse the repository at this point in the history
The ignore list was not complete before, now it includes more python3
specific package locations that do not belong to this project.

Fixes #621.
  • Loading branch information
Makman2 committed Jun 16, 2015
1 parent d9d1683 commit 01b03bb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import os
import tempfile
from distutils.sysconfig import get_python_lib
from site import getsitepackages

from coalib.tests.TestHelper import TestHelper

Expand All @@ -20,13 +20,14 @@

testhelper = TestHelper(parser)

ignore_list = [
os.path.join(tempfile.gettempdir(), "**"),
os.path.join(os.path.dirname(get_python_lib()), "**"),
ignore_list = ([os.path.join(x, "**") for x in getsitepackages()] +
[os.path.join(tempfile.gettempdir(), "**")])

# Project specific ignore list.
ignore_list += [
os.path.join("coalib", "tests", "**"),
os.path.join("coalib", "bearlib", "parsing", "clang", "**"),
os.path.join("bears", "tests", "**")
]
os.path.join("bears", "tests", "**")]

if not testhelper.args.ignore_main_tests:
testhelper.add_test_files(os.path.abspath(os.path.join("coalib",
Expand Down

0 comments on commit 01b03bb

Please sign in to comment.