Mercurial > hg > graal-jvmci-8
comparison mx/mx_graal.py @ 15197:06bfcf5f941d
mx: improve unittest options parsing.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Thu, 17 Apr 2014 16:18:40 +0200 |
parents | 0c53453c4d5e |
children | bc21a3b4d6d3 |
comparison
equal
deleted
inserted
replaced
15196:593f7d0a6f50 | 15197:06bfcf5f941d |
---|---|
963 if delimiter: | 963 if delimiter: |
964 # all arguments before '--' must be recognized | 964 # all arguments before '--' must be recognized |
965 parsed_args = parser.parse_args(ut_args) | 965 parsed_args = parser.parse_args(ut_args) |
966 else: | 966 else: |
967 # parse all know arguments | 967 # parse all know arguments |
968 parsed_args, remaining_args = parser.parse_known_args(ut_args) | 968 parsed_args, args = parser.parse_known_args(ut_args) |
969 args = remaining_args + args | |
970 | 969 |
971 whitelist = None | 970 whitelist = None |
972 if parsed_args.baseline_whitelist: | 971 if parsed_args.baseline_whitelist: |
973 baseline_whitelist_file = 'test/baseline_whitelist.txt' | 972 baseline_whitelist_file = 'test/baseline_whitelist.txt' |
974 try: | 973 try: |