diff options
author | imarom <imarom@cisco.com> | 2016-02-10 08:12:45 -0500 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-02-10 08:13:23 -0500 |
commit | 6413382f3c7cca2873315b84798167856a9411fd (patch) | |
tree | 2d08cc382c98a0b913729eb09b6fdda70016a918 /scripts/automation | |
parent | 0c2b005a017a8574a3580e45118069079e9ea7ff (diff) |
simulator didn't work in package mode
Diffstat (limited to 'scripts/automation')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py index 9cea3ea8..71af88d0 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py @@ -259,7 +259,7 @@ class STLSim(object): cmd = ['valgrind', '--leak-check=full', '--error-exitcode=1'] + cmd elif self.mode == 'gdb': - cmd = ['/bin/gdb', '--args'] + cmd + cmd = ['/usr/bin/gdb', '--args'] + cmd print "executing command: '{0}'".format(" ".join(cmd)) rc = subprocess.call(cmd) @@ -352,6 +352,12 @@ def setParserOptions(): default = -1, type = float) + parser.add_argument('-p', '--path', + help = "BP sim path", + dest = 'bp_sim_path', + default = None, + type = str) + group = parser.add_mutually_exclusive_group() @@ -402,7 +408,8 @@ def main (): mode = 'none' try: - r = STLSim() + r = STLSim(bp_sim_path = options.bp_sim_path) + r.run(input_list = options.input_file, outfile = options.output_file, dp_core_count = options.dp_core_count, |