summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/noseplugin.py
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-03-16 14:44:59 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2017-03-16 16:14:20 +0900
commitafc1fcb1e37d34813dcaede88773956642bdd6c8 (patch)
tree6816883d0c174a51360d42273882e709de6ab45c /test/scenario_test/noseplugin.py
parent0f102be98671abc253e2e73aba15073458c1e444 (diff)
test/lib: Move noseplugin.py to test/lib module directory
To enable to use "noseplugin" as the Python module from the absolute import scope in scenario_test, this patch moves noseplugin.py to test/lib module directory. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'test/scenario_test/noseplugin.py')
-rw-r--r--test/scenario_test/noseplugin.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/test/scenario_test/noseplugin.py b/test/scenario_test/noseplugin.py
deleted file mode 100644
index a53272c3..00000000
--- a/test/scenario_test/noseplugin.py
+++ /dev/null
@@ -1,29 +0,0 @@
-import os
-from nose.plugins import Plugin
-
-parser_option = None
-
-
-class OptionParser(Plugin):
-
- def options(self, parser, env=os.environ):
- super(OptionParser, self).options(parser, env=env)
- parser.add_option('--test-prefix', action="store", dest="test_prefix", default="")
- parser.add_option('--gobgp-image', action="store", dest="gobgp_image", default="osrg/gobgp")
- parser.add_option('--exabgp-path', action="store", dest="exabgp_path", default="")
- parser.add_option('--go-path', action="store", dest="go_path", default="")
- parser.add_option('--gobgp-log-level', action="store",
- dest="gobgp_log_level", default="info")
- parser.add_option('--test-index', action="store", type="int", dest="test_index", default=0)
- parser.add_option('--config-format', action="store", dest="config_format", default="yaml")
-
- def configure(self, options, conf):
- super(OptionParser, self).configure(options, conf)
- global parser_option
- parser_option = options
-
- if not self.enabled:
- return
-
- def finalize(self, result):
- pass