aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pkt_gen/testcenter/testcenter.py
diff options
context:
space:
mode:
authorSridhar Rao <sridhar.rao@spirent.com>2020-12-01 11:49:12 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-12-01 11:49:12 +0000
commit90ef48d4342a983c7733b8c21bb902d1dab2685a (patch)
tree9496de569be5cac8445106174b4e47b171c9b9b0 /tools/pkt_gen/testcenter/testcenter.py
parent249ac8fcbb138c0aee22234aa6738083c62ad23d (diff)
parentd7a033d9e40eedee5e0413cb2f0898fc82364f58 (diff)
Merge "Tools: Improve Stability."HEADopnfv-10.0.0stable/jermamaster
Diffstat (limited to 'tools/pkt_gen/testcenter/testcenter.py')
-rw-r--r--tools/pkt_gen/testcenter/testcenter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/pkt_gen/testcenter/testcenter.py b/tools/pkt_gen/testcenter/testcenter.py
index 73967bae..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: