From 8aeb2207f918b3797a870eb63d15adb2740ea586 Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Mon, 7 Jan 2019 16:29:26 -0800 Subject: test framework. Remove unused code. Change-Id: I1bd14d5aff4918b58aef18fa0a9264e033989f6e Signed-off-by: Paul Vinciguerra --- test/framework.py | 17 +++-------------- 1 file 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: -- cgit 1.2.3-korg