aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-01-07 16:29:26 -0800
committerNeale Ranns <nranns@cisco.com>2019-01-09 06:10:59 +0000
commit8aeb2207f918b3797a870eb63d15adb2740ea586 (patch)
tree232397fe003bb58ce181a969d0551f602647d8a1 /test
parent5f4eb24287c02be6f694f6698472ef4978a5e300 (diff)
test framework. Remove unused code.
Change-Id: I1bd14d5aff4918b58aef18fa0a9264e033989f6e Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test')
-rw-r--r--test/framework.py17
1 files changed, 3 insertions, 14 deletions
diff --git a/test/framework.py b/test/framework.py
index 7633ca04d0b..604e342a466 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -977,12 +977,7 @@ class VppTestCase(unittest.TestCase):
input.add_stream(pkts)
self.pg_enable_capture(self.pg_interfaces)
self.pg_start()
- if isinstance(object, (list,)):
- rx = []
- for o in output:
- rx.append(output.get_capture(len(pkts)))
- else:
- rx = output.get_capture(len(pkts))
+ rx = output.get_capture(len(pkts))
return rx
def send_and_expect_only(self, input, pkts, output, timeout=None):
@@ -990,14 +985,8 @@ class VppTestCase(unittest.TestCase):
input.add_stream(pkts)
self.pg_enable_capture(self.pg_interfaces)
self.pg_start()
- if isinstance(object, (list,)):
- outputs = output
- rx = []
- for o in outputs:
- rx.append(output.get_capture(len(pkts)))
- else:
- rx = output.get_capture(len(pkts))
- outputs = [output]
+ rx = output.get_capture(len(pkts))
+ outputs = [output]
if not timeout:
timeout = 1
for i in self.pg_interfaces: