Ruby: Fix the example configurations option parsing
This patch fixes the, currently broken, Ruby example scripts to reflect the changes in the parsing of command-line options.
This commit is contained in:
parent
aab2001ab7
commit
f1a6090613
4 changed files with 9 additions and 0 deletions
|
@ -36,6 +36,7 @@ import os, optparse, sys
|
|||
addToPath('../common')
|
||||
addToPath('../ruby')
|
||||
|
||||
import Options
|
||||
import Ruby
|
||||
|
||||
# Get paths we might need. It's expected this file is in m5/configs/example.
|
||||
|
@ -44,6 +45,7 @@ config_root = os.path.dirname(config_path)
|
|||
m5_root = os.path.dirname(config_root)
|
||||
|
||||
parser = optparse.OptionParser()
|
||||
Options.addCommonOptions(parser)
|
||||
|
||||
parser.add_option("-l", "--requests", metavar="N", default=100,
|
||||
help="Stop after N requests")
|
||||
|
|
|
@ -36,6 +36,7 @@ import os, optparse, sys
|
|||
addToPath('../common')
|
||||
addToPath('../ruby')
|
||||
|
||||
import Options
|
||||
import Ruby
|
||||
|
||||
# Get paths we might need. It's expected this file is in m5/configs/example.
|
||||
|
@ -44,6 +45,7 @@ config_root = os.path.dirname(config_path)
|
|||
m5_root = os.path.dirname(config_root)
|
||||
|
||||
parser = optparse.OptionParser()
|
||||
Options.addCommonOptions(parser)
|
||||
|
||||
parser.add_option("-l", "--maxloads", metavar="N", default=0,
|
||||
help="Stop after N loads")
|
||||
|
|
|
@ -35,6 +35,8 @@ from m5.util import addToPath
|
|||
import os, optparse, sys
|
||||
addToPath('../common')
|
||||
addToPath('../ruby')
|
||||
|
||||
import Options
|
||||
import Ruby
|
||||
|
||||
# Get paths we might need. It's expected this file is in m5/configs/example.
|
||||
|
@ -43,6 +45,7 @@ config_root = os.path.dirname(config_path)
|
|||
m5_root = os.path.dirname(config_root)
|
||||
|
||||
parser = optparse.OptionParser()
|
||||
Options.addCommonOptions(parser)
|
||||
|
||||
parser.add_option("--synthetic", type="int", default=0,
|
||||
help="Synthetic Traffic type. 0 = Uniform Random,\
|
||||
|
|
|
@ -36,6 +36,7 @@ import os, optparse, sys
|
|||
addToPath('../common')
|
||||
addToPath('../ruby')
|
||||
|
||||
import Options
|
||||
import Ruby
|
||||
|
||||
# Get paths we might need. It's expected this file is in m5/configs/example.
|
||||
|
@ -44,6 +45,7 @@ config_root = os.path.dirname(config_path)
|
|||
m5_root = os.path.dirname(config_root)
|
||||
|
||||
parser = optparse.OptionParser()
|
||||
Options.addCommonOptions(parser)
|
||||
|
||||
parser.add_option("-l", "--checks", metavar="N", default=100,
|
||||
help="Stop after N checks (loads)")
|
||||
|
|
Loading…
Reference in a new issue