Mercurial > hg > graal-compiler
changeset 10608:eeb80dcd60d8
fixed regression in unittest command when no tests are specified
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 04 Jul 2013 15:30:38 +0200 |
parents | dd5a042811f6 |
children | 5f016460f95b b288e775e56b |
files | mx/commands.py |
diffstat | 1 files changed, 14 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/mx/commands.py Thu Jul 04 15:03:43 2013 +0200 +++ b/mx/commands.py Thu Jul 04 15:30:38 2013 +0200 @@ -715,9 +715,6 @@ return True return False - if len(tests) == 0: - mx.abort('no tests specified') - candidates = [] for p in mx.projects(): if mx.java().javaCompliance < p.javaCompliance: @@ -725,17 +722,20 @@ candidates += _find_classes_with_annotations(p, None, annotations).keys() classes = [] - for t in tests: - if t.startswith('-'): - mx.abort('VM option needs @ prefix (i.e., @' + t + ')') - - found = False - for c in candidates: - if t in c: - found = True - classes.append(c) - if not found: - mx.log('warning: no tests matched by substring "' + t) + if len(tests) == 0: + classes = candidates + else: + for t in tests: + if t.startswith('-'): + mx.abort('VM option needs @ prefix (i.e., @' + t + ')') + + found = False + for c in candidates: + if t in c: + found = True + classes.append(c) + if not found: + mx.log('warning: no tests matched by substring "' + t) projectscp = mx.classpath([pcp.name for pcp in mx.projects() if pcp.javaCompliance <= mx.java().javaCompliance])