Mercurial > hg > graal-compiler
diff mx/mx_graal.py @ 15657:50740bac9679
mx unittest: simplify argument passing.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Wed, 14 May 2014 20:43:43 +0200 |
parents | fcf6e5683082 |
children | dffc37fa7157 |
line wrap: on
line diff
--- a/mx/mx_graal.py Wed May 14 20:59:27 2014 +0200 +++ b/mx/mx_graal.py Wed May 14 20:43:43 2014 +0200 @@ -1072,15 +1072,14 @@ # parse all know arguments parsed_args, args = parser.parse_known_args(ut_args) - whitelist = None if parsed_args.whitelist: try: with open(join(_graal_home, parsed_args.whitelist)) as fp: - whitelist = [re.compile(fnmatch.translate(l.rstrip())) for l in fp.readlines() if not l.startswith('#')] + parsed_args.whitelist = [re.compile(fnmatch.translate(l.rstrip())) for l in fp.readlines() if not l.startswith('#')] except IOError: mx.log('warning: could not read whitelist: ' + parsed_args.whitelist) - _unittest(args, ['@Test', '@Parameters'], whitelist=whitelist, verbose=parsed_args.verbose, enable_timing=parsed_args.enable_timing, regex=parsed_args.regex, color=parsed_args.color, eager_stacktrace=parsed_args.eager_stacktrace) + _unittest(args, ['@Test', '@Parameters'], **parsed_args.__dict__) def shortunittest(args): """alias for 'unittest --whitelist test/whitelist_shortunittest.txt'{0}"""