test/run_benchmarks: change YAML config file argument

This commit is contained in:
Florent Kermarrec 2020-02-03 10:38:10 +01:00
parent 7e95ecc9a9
commit 736723cc98
1 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ def run_benchmarks(configurations):
def main(argv=None): def main(argv=None):
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
description='Run LiteDRAM benchmarks and collect the results.') description='Run LiteDRAM benchmarks and collect the results.')
parser.add_argument('--yaml', required=True, help='Load benchmark configurations from YAML file') parser.add_argument("config", help="YAML config file")
parser.add_argument('--names', nargs='*', help='Limit benchmarks to given names') parser.add_argument('--names', nargs='*', help='Limit benchmarks to given names')
parser.add_argument('--regex', help='Limit benchmarks to names matching the regex') parser.add_argument('--regex', help='Limit benchmarks to names matching the regex')
parser.add_argument('--not-regex', help='Limit benchmarks to names not matching the regex') parser.add_argument('--not-regex', help='Limit benchmarks to names not matching the regex')
@ -278,7 +278,7 @@ def main(argv=None):
args = parser.parse_args(argv) args = parser.parse_args(argv)
# load and filter configurations # load and filter configurations
configurations = BenchmarkConfiguration.load_yaml(args.yaml) configurations = BenchmarkConfiguration.load_yaml(args.config)
filters = [] filters = []
if args.regex: if args.regex:
filters.append(lambda name_value: re.search(args.regex, name_value[0])) filters.append(lambda name_value: re.search(args.regex, name_value[0]))