diff options
author | Martin Klozik <martinx.klozik@intel.com> | 2016-02-18 12:00:12 +0000 |
---|---|---|
committer | Maryam Tahhan <maryam.tahhan@intel.com> | 2016-02-23 14:46:59 +0000 |
commit | ff1634c7e034dc9ef8ef779c1b3aa74019af1ac7 (patch) | |
tree | 457e064c8aecaf2034be714f5de80ca3304f24b1 /vsperf | |
parent | 1f5f146b1007e61fcaa98cd8be0f3961216b1318 (diff) |
bugfix: Parameter duration does not work
Vswitchperf help describes two different options, which will
set lenght of the test or duration of its iteration. It can be set
either by parameter --duration or by --test-params CLI option
duration. However only the second option is implemented. It is
enough to support only one option and thus --duration parameter
has been removed.
Change-Id: Icfa40ec25f50bd090229b0761fa968567d8d3553
JIRA: VSPERF-196
Signed-off-by: Martin Klozik <martinx.klozik@intel.com>
Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com>
Reviewed-by: Al Morton <acmorton@att.com>
Diffstat (limited to 'vsperf')
-rwxr-xr-x | vsperf | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -161,7 +161,6 @@ def parse_arguments(): group.add_argument('--vswitch', help='vswitch implementation to use') group.add_argument('--fwdapp', help='packet forwarding application to use') group.add_argument('--vnf', help='vnf to use') - group.add_argument('--duration', help='traffic transmit duration') group.add_argument('--sysmetrics', help='system metrics logger to use') group = parser.add_argument_group('test behavior options') group.add_argument('--xunit', action='store_true', @@ -432,13 +431,6 @@ def main(): settings.getValue('vnf_dir')) sys.exit(1) - if args['duration']: - if args['duration'].isdigit() and int(args['duration']) > 0: - settings.setValue('duration', args['duration']) - else: - logging.error('The selected Duration is not a number') - sys.exit(1) - # update global settings guest_loopback = get_test_param('guest_loopback', None) if guest_loopback: |