[dts] [PATCH V1] tests/TestSuite_short_live.py:Delay repair on start_up_time.
Tu, LijuanX A
lijuanx.a.tu at intel.com
Wed Mar 14 10:34:50 CET 2018
As DPDK will capture signals, " SIGTERM" and "SIGINT", it needs some time to prepare to exit.
Hi shuai,
Could you make your code more succinctly?
Code may be simple
-----Original Message-----
From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of zhu,shuai
Sent: Wednesday, March 14, 2018 3:03 PM
To: dts at dpdk.org
Cc: Zhu, ShuaiX <shuaix.zhu at intel.com>
Subject: [dts] [PATCH V1] tests/TestSuite_short_live.py:Delay repair on start_up_time.
I think it is because case has delayed after killing testpmd, resulting in no release resources.
Signed-off-by: zhu,shuai <shuaix.zhu at intel.com>
---
tests/TestSuite_short_live.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py index 62c43a5..8d1d847 100644
--- a/tests/TestSuite_short_live.py
+++ b/tests/TestSuite_short_live.py
@@ -160,8 +160,10 @@ class TestShortLiveApp(TestCase):
# kill with differen Signal
if i%2 == 0:
self.dut.send_expect("pkill -2 testpmd", "#", 60, True)
+ time.sleep(2)
else:
self.dut.send_expect("pkill -15 testpmd", "#", 60, True)
+ time.sleep(2)
def test_clean_up_with_signal_l2fwd(self):
repeat_time = 5
--
1.9.3
More information about the dts
mailing list