Bug 949538 - Add mach target for cpp unittests; r=gps

This commit is contained in:
Dan Minor
2014-01-02 10:19:35 -05:00
parent e792cf0c66
commit b632c9b64d
2 changed files with 44 additions and 3 deletions

View File

@@ -145,7 +145,9 @@ class CPPUnittestOptions(OptionParser):
def extract_unittests_from_args(args, manifest_file):
"""Extract unittests from args, expanding directories as needed"""
progs = []
skipped_progs = set()
# Known files commonly packaged with the cppunittests that are not tests
skipped_progs = set(['.mkdir.done', 'remotecppunittests.py', 'runcppunittests.py', 'runcppunittests.pyc'])
if manifest_file:
skipped_progs.add(os.path.basename(manifest_file))
@@ -162,8 +164,7 @@ def extract_unittests_from_args(args, manifest_file):
elif p not in skipped_progs:
progs.append(os.path.abspath(p))
#filter out python files packaged with the unit tests
return filter(lambda x: not x.endswith('.py') and not x.endswith('.pyc'), progs)
return progs
def main():
parser = CPPUnittestOptions()