aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pkt_gen/testcenter/testcenter.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pkt_gen/testcenter/testcenter.py')
-rw-r--r--tools/pkt_gen/testcenter/testcenter.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/pkt_gen/testcenter/testcenter.py b/tools/pkt_gen/testcenter/testcenter.py
index f01069e2..a15c502c 100644
--- a/tools/pkt_gen/testcenter/testcenter.py
+++ b/tools/pkt_gen/testcenter/testcenter.py
@@ -338,6 +338,8 @@ class TestCenter(trafficgen.ITrafficGenerator):
Reads the CSV file and return the results
"""
result = {}
+ if not os.path.exists(filename):
+ return result
with open(filename, "r") as csvfile:
csvreader = csv.DictReader(csvfile)
for row in csvreader:
@@ -436,11 +438,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")