summaryrefslogtreecommitdiff
path: root/tests/configs/rubytest-ruby.py
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2012-03-28 11:01:53 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2012-03-28 11:01:53 -0500
commit390cfc7be9e5e477451a31a1dc8df82b42ee4011 (patch)
tree79535c74b31fdac5d3e0f64c12372fc7572609c8 /tests/configs/rubytest-ruby.py
parent6ca3af8ecfa5e6fbc03b01c0eba3de9d6e2f7c45 (diff)
downloadgem5-390cfc7be9e5e477451a31a1dc8df82b42ee4011.tar.xz
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.
Diffstat (limited to 'tests/configs/rubytest-ruby.py')
-rw-r--r--tests/configs/rubytest-ruby.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/configs/rubytest-ruby.py b/tests/configs/rubytest-ruby.py
index c53ed26bd..70deb2958 100644
--- a/tests/configs/rubytest-ruby.py
+++ b/tests/configs/rubytest-ruby.py
@@ -42,16 +42,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()
#