[dts] [PATCH V1 1/7]tests/TestSuite_iavf: fix kill l3fwd-power
Xiao Qimai
qimaix.xiao at intel.com
Wed Apr 8 11:18:48 CEST 2020
Signed-off-by: Xiao Qimai <qimaix.xiao at intel.com>
---
tests/TestSuite_iavf.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_iavf.py b/tests/TestSuite_iavf.py
index dedabbd..248bd8d 100644
--- a/tests/TestSuite_iavf.py
+++ b/tests/TestSuite_iavf.py
@@ -729,6 +729,7 @@ class TestIavf(TestCase):
def test_vf_rx_interrupt(self):
# build l3fwd-power
+ self.vm_dut_alt = self.vm_dut_0.create_session(name="vm_dut_alt")
out = self.vm_dut_0.build_dpdk_apps("./examples/l3fwd-power")
self.verify("Error" not in out, "Compilation error")
self.verify("No such" not in out, "Compilation error")
@@ -755,13 +756,14 @@ class TestIavf(TestCase):
out = self.vm_dut_0.get_session_output()
self.verify('L3FWD_POWER: lcore 0 is waked up from rx interrupt' in out, 'lcore 0 is not waked up')
self.verify('L3FWD_POWER: lcore 1 is waked up from rx interrupt' in out, 'lcore 1 is not waked up')
- self.vm_dut_0.send_expect("^C", "# ", 60)
+ self.vm_dut_alt.send_expect("killall l3fwd-power", "# ", 10)
self.vm_dut_0.bind_interfaces_linux(driver="igb_uio")
self.interrupt_flag = True
def tear_down(self):
if self.running_case == "test_vf_rx_interrupt":
- self.vm_dut_0.send_expect("^C", "# ", 60)
+ self.vm_dut_alt.send_expect("killall l3fwd-power", "# ", 10)
+ self.vm_dut_alt.close()
else:
self.vm0_testpmd.quit()
--
1.8.3.1
More information about the dts
mailing list