comparison mx/mx_graal.py @ 15326:6e1d5f3e4615

mx: support comments in whitelist
author Bernhard Urban <bernhard.urban@jku.at>
date Wed, 23 Apr 2014 14:44:24 +0200
parents 25ce2866f105
children 25633b639fd7
comparison
equal deleted inserted replaced
15325:25ce2866f105 15326:6e1d5f3e4615
964 964
965 whitelist = None 965 whitelist = None
966 if parsed_args.whitelist: 966 if parsed_args.whitelist:
967 try: 967 try:
968 with open(join(_graal_home, parsed_args.whitelist)) as fp: 968 with open(join(_graal_home, parsed_args.whitelist)) as fp:
969 whitelist = [l.rstrip() for l in fp.readlines()] 969 whitelist = [l.rstrip() for l in fp.readlines() if not l.startswith('#')]
970 except IOError: 970 except IOError:
971 mx.log('warning: could not read whitelist: ' + parsed_args.whitelist) 971 mx.log('warning: could not read whitelist: ' + parsed_args.whitelist)
972 972
973 _unittest(args, ['@Test', '@Parameters'], whitelist=whitelist) 973 _unittest(args, ['@Test', '@Parameters'], whitelist=whitelist)
974 974