[V1] tests/ice_buffer_split: optimize scripts

Message ID 20230426180232.32329-1-songx.jiale@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/ice_buffer_split: optimize scripts |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-suite-test success Testing OK

Commit Message

Jiale, SongX April 26, 2023, 6:02 p.m. UTC
  exit the scapy initiated in the test case to avoid affecting 
the use of the session.

Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
 tests/TestSuite_ice_buffer_split.py | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Tu, Lijuan May 25, 2023, 2:17 a.m. UTC | #1
On Wed, 26 Apr 2023 18:02:32 +0000, Jiale Song <songx.jiale@intel.com> wrote:
> exit the scapy initiated in the test case to avoid affecting 
> the use of the session.
> 
> Signed-off-by: Jiale Song <songx.jiale@intel.com>


Applied, thanks
  

Patch

diff --git a/tests/TestSuite_ice_buffer_split.py b/tests/TestSuite_ice_buffer_split.py
index 55d37ec6..5b71853c 100644
--- a/tests/TestSuite_ice_buffer_split.py
+++ b/tests/TestSuite_ice_buffer_split.py
@@ -668,6 +668,7 @@  class TestBufferSplit(TestCase):
             if len(pkt_data) != 0:
                 pkt_data_list.append(pkt_data)
         self.logger.info("pkt_data_list: {}".format(pkt_data_list))
+        self.tester.send_expect("quit()", "# ")
         return pkt_data_list
 
     def send_pkt_get_output(self, pkts, port_id, count=1):