Mercurial > hg > truffle
comparison mx/mx_graal.py @ 15328:d89ed48ae349
mx: use generators
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Wed, 23 Apr 2014 17:02:12 +0200 |
parents | 25633b639fd7 |
children | 3b56c9bbf60c |
comparison
equal
deleted
inserted
replaced
15327:25633b639fd7 | 15328:d89ed48ae349 |
---|---|
860 if not found: | 860 if not found: |
861 mx.log('warning: no tests matched by substring "' + t) | 861 mx.log('warning: no tests matched by substring "' + t) |
862 projectscp = mx.classpath(projs) | 862 projectscp = mx.classpath(projs) |
863 | 863 |
864 if whitelist: | 864 if whitelist: |
865 classes = [c for c in classes if any([glob.match(c) for glob in whitelist])] | 865 classes = [c for c in classes if any((glob.match(c) for glob in whitelist))] |
866 | 866 |
867 if len(classes) != 0: | 867 if len(classes) != 0: |
868 f_testfile = open(testfile, 'w') | 868 f_testfile = open(testfile, 'w') |
869 for c in classes: | 869 for c in classes: |
870 f_testfile.write(c + '\n') | 870 f_testfile.write(c + '\n') |