[dts] [PATCH V1] tests/queue_start_stop: optimize script

Song Jiale songx.jiale at intel.com
Wed Jan 18 16:48:14 CET 2023


there is "#" in the echo after the "patch -p0" command of Linux is executed.
this "#" is not the expected value, which will affect the subsequent tests.

Signed-off-by: Song Jiale <songx.jiale at intel.com>
---
 tests/TestSuite_queue_start_stop.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_queue_start_stop.py b/tests/TestSuite_queue_start_stop.py
index b6f4ba96..80baf8d6 100644
--- a/tests/TestSuite_queue_start_stop.py
+++ b/tests/TestSuite_queue_start_stop.py
@@ -93,9 +93,9 @@ class TestQueueStartStop(TestCase):
         """
         try:
             if on:
-                self.dut.send_expect("patch -p0 < %s" % patch_dir, "#")
+                self.dut.send_expect("patch -p0 < %s" % patch_dir, "[~|~\]]# ")
             else:
-                self.dut.send_expect("patch -p0 -R < %s" % patch_dir, "#")
+                self.dut.send_expect("patch -p0 -R < %s" % patch_dir, "[~|~\]]# ")
         except Exception as e:
             raise ValueError("patch_hotfix_dpdk failure: %s" % e)
 
-- 
2.25.1



More information about the dts mailing list