diff options
author | 2016-02-10 15:20:14 +0200 | |
---|---|---|
committer | 2016-02-10 15:20:14 +0200 | |
commit | 289e0fae5a115ec2e9dda53d63ddd40cf970be25 (patch) | |
tree | a3c910a025cf49035b1c4e0d914b44cac3287fdf /scripts/automation/trex_control_plane/stl/trex_stl_lib | |
parent | f2a86412d7b160619a92d0942e27f608608bf3a6 (diff) | |
parent | 6413382f3c7cca2873315b84798167856a9411fd (diff) |
Merge more test
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib')
-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, |