From 736723cc98ae5605eb367bda73bf277375fd054b Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 3 Feb 2020 10:38:10 +0100 Subject: [PATCH] test/run_benchmarks: change YAML config file argument --- test/run_benchmarks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/run_benchmarks.py b/test/run_benchmarks.py index 96dc104..2652634 100755 --- a/test/run_benchmarks.py +++ b/test/run_benchmarks.py @@ -264,7 +264,7 @@ def run_benchmarks(configurations): def main(argv=None): parser = argparse.ArgumentParser( 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('--regex', help='Limit benchmarks to names 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) # load and filter configurations - configurations = BenchmarkConfiguration.load_yaml(args.yaml) + configurations = BenchmarkConfiguration.load_yaml(args.config) filters = [] if args.regex: filters.append(lambda name_value: re.search(args.regex, name_value[0]))