From: Sridhar K. N. Rao Date: Mon, 27 May 2019 13:53:26 +0000 (+0530) Subject: pkt_gen: Bug-fix in Spirent testcenter parameter ordering. X-Git-Tag: opnfv-10.0.0~39 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=cab391ccb85ac4f1279bfa341f5390e08c7d82cd;p=vswitchperf.git pkt_gen: Bug-fix in Spirent testcenter parameter ordering. This patch provides a fix to parameter ordering for imix and live results. 2 line changes. JIRA: VSPERF-598 Change-Id: I329b67114d780e0bcc73b128aeafe6e0f25b0621 Signed-off-by: Sridhar K. N. Rao --- diff --git a/tools/pkt_gen/testcenter/testcenter.py b/tools/pkt_gen/testcenter/testcenter.py index f01069e2..73967bae 100644 --- a/tools/pkt_gen/testcenter/testcenter.py +++ b/tools/pkt_gen/testcenter/testcenter.py @@ -436,11 +436,13 @@ class TestCenter(trafficgen.ITrafficGenerator): if traffic['imix']['enabled']: if traffic['imix']['type'] == 'genome': genome = traffic['imix']['genome'] - args.append('--imix' + ' ' + genome) + args.append('--imix') + args.append(genome) if settings.getValue("TRAFFICGEN_STC_LIVE_RESULTS") == "True": args.append('--live_results') - args.append('--logfile' + ' ' + self._liveresults_file) + args.append('--logfile') + args.append(self._liveresults_file) if settings.getValue("TRAFFICGEN_STC_VERBOSE") == "True": args.append("--verbose")