tests/sitecustomize.py
author Gregory Szorc <gregory.szorc@gmail.com>
Mon, 24 Mar 2014 22:12:37 -0700
changeset 21009 990f5392c018
parent 14971 0b21ae0a2366
child 24505 031947baf4d0
permissions -rw-r--r--
run-tests: allow test paths in other directories Previously, test paths were assumed to be in the same directory and wouldn't have a directory component. If a path with a directory component was specified, it would be filtered out. This change allow paths to contain directories. This in turn allows tests from other directories to be executed. Executing tests in other directories may break assumptions elsewhere in the testing code. However, on initial glance, things appear to "just work." This approach of running tests from other directories is successfully being used at https://hg.mozilla.org/hgcustom/version-control-tools/file/7085790ff3af/run-mercurial-tests.py

try:
    import coverage
    getattr(coverage, 'process_startup', lambda: None)()
except ImportError:
    pass