aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pkt_gen/testcenter
diff options
context:
space:
mode:
authorsridharkn <sridhar.rao@spirent.com>2016-08-09 17:54:05 +0530
committerMaryam Tahhan <maryam.tahhan@intel.com>2016-08-12 13:07:41 +0000
commitea6a60dec01d154196c21cfdacf6fd3f6981c71c (patch)
treea1102f47147e449b065a93c1d037ac865b4d8ba3 /tools/pkt_gen/testcenter
parentdeeedbf93d972e5bd5b101115bb3537ea7a179ff (diff)
pkt_gen: Spirent changes to Harmonize test/trial terminology
Added changes to make use of the tests parameter. The change is minor. Prior to this the value was taken from configuration file. With this change, the tests value is used as passed. JIRA: VSPERF-367 Change-Id: I9d1553d3b53dd19a79428ddaaacadb55fc27324f Signed-off-by: Sridhar Rao <sridhar.rao@spirent.com>
Diffstat (limited to 'tools/pkt_gen/testcenter')
-rw-r--r--tools/pkt_gen/testcenter/testcenter.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/tools/pkt_gen/testcenter/testcenter.py b/tools/pkt_gen/testcenter/testcenter.py
index c242269a..a6cea2e1 100644
--- a/tools/pkt_gen/testcenter/testcenter.py
+++ b/tools/pkt_gen/testcenter/testcenter.py
@@ -95,8 +95,6 @@ def get_rfc2544_common_settings():
settings.getValue("TRAFFICGEN_STC_WEST_INTF_ADDR"),
"--west_intf_gateway_addr",
settings.getValue("TRAFFICGEN_STC_WEST_INTF_GATEWAY_ADDR"),
- "--num_trials",
- settings.getValue("TRAFFICGEN_STC_NUMBER_OF_TRIALS"),
"--trial_duration_sec",
settings.getValue("TRAFFICGEN_STC_TRIAL_DURATION_SEC"),
"--traffic_pattern",
@@ -104,14 +102,16 @@ def get_rfc2544_common_settings():
return args
-def get_rfc2544_custom_settings(framesize, custom_tr):
+def get_rfc2544_custom_settings(framesize, custom_tr, tests):
"""
Return RFC2544 Custom Settings
"""
args = ["--frame_size_list",
str(framesize),
"--traffic_custom",
- str(custom_tr)]
+ str(custom_tr),
+ "--num_trials",
+ str(tests)]
return args
@@ -192,7 +192,7 @@ class TestCenter(trafficgen.ITrafficGenerator):
stc_common_args = get_stc_common_settings()
rfc2544_common_args = get_rfc2544_common_settings()
rfc2544_custom_args = get_rfc2544_custom_settings(framesize,
- custom)
+ custom, 1)
args = stc_common_args + rfc2544_common_args + rfc2544_custom_args
if settings.getValue("TRAFFICGEN_STC_VERBOSE") is "True":
@@ -224,7 +224,8 @@ class TestCenter(trafficgen.ITrafficGenerator):
stc_common_args = get_stc_common_settings()
rfc2544_common_args = get_rfc2544_common_settings()
- rfc2544_custom_args = get_rfc2544_custom_settings(framesize, '')
+ rfc2544_custom_args = get_rfc2544_custom_settings(framesize, '',
+ tests)
args = stc_common_args + rfc2544_common_args + rfc2544_custom_args
if settings.getValue("TRAFFICGEN_STC_VERBOSE") is "True":
@@ -256,7 +257,8 @@ class TestCenter(trafficgen.ITrafficGenerator):
stc_common_args = get_stc_common_settings()
rfc2544_common_args = get_rfc2544_common_settings()
- rfc2544_custom_args = get_rfc2544_custom_settings(framesize, '')
+ rfc2544_custom_args = get_rfc2544_custom_settings(framesize, '',
+ tests)
args = stc_common_args + rfc2544_common_args + rfc2544_custom_args
if settings.getValue("TRAFFICGEN_STC_VERBOSE") is "True":