pkt_gen: Bug-fix in Spirent testcenter parameter ordering. 54/67954/1
authorSridhar K. N. Rao <sridhar.rao@spirent.com>
Mon, 27 May 2019 13:53:26 +0000 (19:23 +0530)
committerSridhar K. N. Rao <sridhar.rao@spirent.com>
Mon, 27 May 2019 14:25:15 +0000 (19:55 +0530)
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 <sridhar.rao@spirent.com>
tools/pkt_gen/testcenter/testcenter.py

index f01069e..73967ba 100644 (file)
@@ -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")