From 23206fe5f8e01949f7601d0859fee5e845c50fb2 Mon Sep 17 00:00:00 2001 From: Marco Capitani Date: Thu, 13 Apr 2017 10:51:53 +0200 Subject: Tester: fixed parsing of prototype parameter. --- tools/democonf2rumba.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tools') diff --git a/tools/democonf2rumba.py b/tools/democonf2rumba.py index 383268c..cda112c 100755 --- a/tools/democonf2rumba.py +++ b/tools/democonf2rumba.py @@ -1,4 +1,4 @@ -#!/usr/bin/env/python +#!/usr/bin/env python import argparse import re @@ -153,7 +153,7 @@ if __name__ == '__main__': help='The kind of prototype plugin to use to run' ' the experiment.') - parser.add_argument('--config', metavar='CONFIG', type=str, + parser.add_argument('-C', '--conf', metavar='CONFIG', type=str, required=True, help='Path to the config file to parse') @@ -225,20 +225,20 @@ if __name__ == '__main__': exit(1) raise ValueError('Unexpected testbed: %s.' % args.testbed) - if args.irati: + if args.prototype == 'irati': import rumba.prototypes.irati as irati exp_class = irati.Experiment - elif args.ouroboros: + elif args.prototype == 'ouroboros': import rumba.prototypes.ouroboros as ouroboros exp_class = ouroboros.Experiment - elif args.rlite: + elif args.prototype == 'rlite': import rumba.prototypes.rlite as rlite exp_class = rlite.Experiment else: raise ValueError('Unexpected prototype: %s.' % args.testbed) try: - make_experiment(args.config, + make_experiment(args.conf, experiment_class=exp_class, experiment_kwargs={}, testbed_class=test_class, -- cgit v1.2.3