aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2017-04-13 10:51:53 +0200
committerMarco Capitani <m.capitani@nextworks.it>2017-04-13 10:51:53 +0200
commit23206fe5f8e01949f7601d0859fee5e845c50fb2 (patch)
tree0b77d07705496f035135b03176b7180a22527228
parenta08e4f5ff3809eec923dbe9441bf433cef8b6dd4 (diff)
downloadrumba-23206fe5f8e01949f7601d0859fee5e845c50fb2.tar.gz
rumba-23206fe5f8e01949f7601d0859fee5e845c50fb2.zip
Tester: fixed parsing of prototype parameter.
-rwxr-xr-xtools/democonf2rumba.py12
1 files changed, 6 insertions, 6 deletions
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,