Mercurial > hg > graal-jvmci-8
comparison mx/mx_graal.py @ 16306:21c3c233e81a
mx_graal.py unittest make testname match with wildcards *
author | Stefan Anzinger <stefan.anzinger@gmail.com> |
---|---|
date | Thu, 24 Apr 2014 07:25:02 +0200 |
parents | 12f2b3baa163 |
children | 151fe6b1e511 |
comparison
equal
deleted
inserted
replaced
16305:18c8ef7df8b5 | 16306:21c3c233e81a |
---|---|
28 | 28 |
29 import os, sys, shutil, zipfile, tempfile, re, time, datetime, platform, subprocess, multiprocessing, StringIO | 29 import os, sys, shutil, zipfile, tempfile, re, time, datetime, platform, subprocess, multiprocessing, StringIO |
30 from os.path import join, exists, dirname, basename, getmtime | 30 from os.path import join, exists, dirname, basename, getmtime |
31 from argparse import ArgumentParser, RawDescriptionHelpFormatter, REMAINDER | 31 from argparse import ArgumentParser, RawDescriptionHelpFormatter, REMAINDER |
32 from outputparser import OutputParser, ValuesMatcher | 32 from outputparser import OutputParser, ValuesMatcher |
33 from fnmatch import fnmatch | |
33 import mx | 34 import mx |
34 import xml.dom.minidom | 35 import xml.dom.minidom |
35 import sanitycheck | 36 import sanitycheck |
36 import itertools | 37 import itertools |
37 import json, textwrap | 38 import json, textwrap |
850 else: | 851 else: |
851 projs = set() | 852 projs = set() |
852 for t in tests: | 853 for t in tests: |
853 found = False | 854 found = False |
854 for c, p in candidates.iteritems(): | 855 for c, p in candidates.iteritems(): |
855 if t == c: | 856 if fnmatch(c, t): |
856 found = True | 857 found = True |
857 classes.append(c) | 858 classes.append(c) |
858 projs.add(p.name) | 859 projs.add(p.name) |
859 if not found: | 860 if not found: |
860 mx.log('warning: no tests matched by substring "' + t) | 861 mx.log('warning: no tests matched by substring "' + t) |