changeset 18237:6924bb0badc9

mx: set initial value for flag
author Bernhard Urban <bernhard.urban@jku.at>
date Tue, 04 Nov 2014 13:08:52 +0100
parents 6a05fba906be
children 4221c8332c34
files mx/mx_graal.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mx/mx_graal.py	Tue Nov 04 13:03:21 2014 +0100
+++ b/mx/mx_graal.py	Tue Nov 04 13:08:52 2014 +0100
@@ -1098,11 +1098,13 @@
         projectsCp = mx.classpath([pcp.name for pcp in mx.projects_opt_limit_to_suites() if pcp.javaCompliance <= mx.java().javaCompliance])
     else:
         projs = set()
+        found = False
         if len(tests) == 1 and '#' in tests[0]:
             words = tests[0].split('#')
             if len(words) != 2:
                 mx.abort("Method specification is class#method: " + tests[0])
             t, method = words
+
             for c, p in candidates.iteritems():
                 if t in c:
                     found = True
@@ -1114,7 +1116,6 @@
             for t in tests:
                 if '#' in t:
                     mx.abort('Method specifications can only be used in a single test: ' + t)
-                found = False
                 for c, p in candidates.iteritems():
                     if t in c:
                         found = True