diff options
Diffstat (limited to 'test/scenario_test/noseplugin.py')
-rw-r--r-- | test/scenario_test/noseplugin.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/scenario_test/noseplugin.py b/test/scenario_test/noseplugin.py new file mode 100644 index 00000000..8247d2fd --- /dev/null +++ b/test/scenario_test/noseplugin.py @@ -0,0 +1,22 @@ +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('--use-local', action="store_true", dest="use_local", default=False) + + 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
\ No newline at end of file |