test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] tests/TestSuite_short_live.py: Corrected the expected prompt of the "pkill" command ran to terminate the l2fwd and l3fwd application.
@ 2021-02-22 11:08 skalal
  2021-04-07  6:35 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: skalal @ 2021-02-22 11:08 UTC (permalink / raw)
  To: dts; +Cc: zzhou, pvukkisala, skalal

From: skalal <skalal@marvell.com>

Signed-off-by: skalal <skalal@marvell.com>
---
 tests/TestSuite_short_live.py | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py
index 91deded..5ebf0b4 100644
--- a/tests/TestSuite_short_live.py
+++ b/tests/TestSuite_short_live.py
@@ -127,7 +127,7 @@ class TestShortLiveApp(TestCase):
         process_file = "/var/run/dpdk/rte/config"
         delay = 0
         while delay < delay_max:
-            process = self.dut.send_expect("lsof %s | wc -l" % process_file, "#")
+            process = self.dut.send_expect("lsof %s | wc -l" % process_file, "# ")
             # as FUSE filesystem may not be accessible for root, so the output might include some warning info
             res = process.splitlines()[-1].strip()
             if res != '0':
@@ -162,7 +162,7 @@ class TestShortLiveApp(TestCase):
         time = []
         regex = re.compile(".* (\d+:\d{2}\.\d{2}).*")
         eal_para = self.dut.create_eal_parameters(no_pci=True)
-        out = self.dut.send_expect("echo quit | time ./%s %s -- -i" % (self.app_testpmd, eal_para), "#", 120)
+        out = self.dut.send_expect("echo quit | time ./%s %s -- -i" % (self.app_testpmd, eal_para), "# ", 120)
         time = regex.findall(out)
 
         if time != []:
@@ -189,9 +189,9 @@ class TestShortLiveApp(TestCase):
 
             # kill with different Signal
             if i%2 == 0:
-                self.dut.send_expect("pkill -2 testpmd", "#", 60, True)
+                self.dut.send_expect("pkill -2 testpmd", "# ", 60, True)
             else:
-                self.dut.send_expect("pkill -15 testpmd", "#", 60, True)
+                self.dut.send_expect("pkill -15 testpmd", "# ", 60, True)
             self.check_process()
 
     def test_clean_up_with_signal_l2fwd(self):
@@ -205,9 +205,9 @@ class TestShortLiveApp(TestCase):
 
             # kill with different Signal
             if i%2 == 0:
-                self.dut.send_expect("pkill -2 l2fwd", "#", 60, True)
+                self.dut.send_expect("pkill -2 l2fwd", "Bye...", 60)
             else:
-                self.dut.send_expect("pkill -15 l2fwd", "#", 60, True)
+                self.dut.send_expect("pkill -15 l2fwd", "Bye...", 60)
             self.check_process()
 
     def test_clean_up_with_signal_l3fwd(self):
@@ -221,9 +221,9 @@ class TestShortLiveApp(TestCase):
 
             # kill with different Signal
             if i%2 == 0:
-                self.dut.send_expect("pkill -2 l3fwd", "#", 60, True)
+                self.dut.send_expect("pkill -2 l3fwd", "Bye...", 60)
             else:
-                self.dut.send_expect("pkill -15 l3fwd", "#", 60, True)
+                self.dut.send_expect("pkill -15 l3fwd", "Bye...", 60)
             self.check_process()
 
     def tear_down(self):
@@ -238,6 +238,6 @@ class TestShortLiveApp(TestCase):
         Run after each test suite.
         """
         self.dut.kill_all()
-        self.dut.send_expect("rm -rf ./app/test-pmd/testpmd", "#")
-        self.dut.send_expect("rm -rf ./app/test-pmd/*.o", "#")
-        self.dut.send_expect("rm -rf ./app/test-pmd/build", "#")
+        self.dut.send_expect("rm -rf ./app/test-pmd/testpmd", "# ")
+        self.dut.send_expect("rm -rf ./app/test-pmd/*.o", "# ")
+        self.dut.send_expect("rm -rf ./app/test-pmd/build", "# ")
-- 
2.9.5


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH] tests/TestSuite_short_live.py: Corrected the expected prompt of the "pkill" command ran to terminate the l2fwd and l3fwd application.
  2021-02-22 11:08 [dts] [PATCH] tests/TestSuite_short_live.py: Corrected the expected prompt of the "pkill" command ran to terminate the l2fwd and l3fwd application skalal
@ 2021-04-07  6:35 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2021-04-07  6:35 UTC (permalink / raw)
  To: skalal, dts; +Cc: zzhou, pvukkisala

> Subject: [dts] [PATCH] tests/TestSuite_short_live.py: Corrected the expected
> prompt of the "pkill" command ran to terminate the l2fwd and l3fwd application.
> 
> From: skalal <skalal@marvell.com>
> 
> Signed-off-by: skalal <skalal@marvell.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-07  6:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-22 11:08 [dts] [PATCH] tests/TestSuite_short_live.py: Corrected the expected prompt of the "pkill" command ran to terminate the l2fwd and l3fwd application skalal
2021-04-07  6:35 ` Tu, Lijuan

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ https://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git