From 390cfc7be9e5e477451a31a1dc8df82b42ee4011 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Wed, 28 Mar 2012 11:01:53 -0500 Subject: Config: Change the way options are added I am not too happy with the way options are added in files se.py and fs.py currently. This patch moves all the options to the file Options.py, functions from which are called when required. --- tests/configs/memtest-ruby.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/configs/memtest-ruby.py') diff --git a/tests/configs/memtest-ruby.py b/tests/configs/memtest-ruby.py index e2c59497e..c69e1bf00 100644 --- a/tests/configs/memtest-ruby.py +++ b/tests/configs/memtest-ruby.py @@ -41,16 +41,14 @@ addToPath(config_root+'/configs/common') addToPath(config_root+'/configs/ruby') import Ruby +import Options parser = optparse.OptionParser() +Options.addCommonOptions(parser) -# # Add the ruby specific and protocol specific options -# Ruby.define_options(parser) -execfile(os.path.join(config_root, "configs/common", "Options.py")) - (options, args) = parser.parse_args() # -- cgit v1.2.3