[dts] [PATCH V1] tests/vhost_enqueue_interrupt: flush output buffer before launch l3fwd
lihong
lihongx.ma at intel.com
Tue Aug 13 01:59:00 CEST 2019
flush output buffer before launch l3fwd
print logger info after verify successful
Signed-off-by: lihong <lihongx.ma at intel.com>
---
tests/TestSuite_vhost_enqueue_interrupt.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_vhost_enqueue_interrupt.py b/tests/TestSuite_vhost_enqueue_interrupt.py
index 29c3756..428cf36 100644
--- a/tests/TestSuite_vhost_enqueue_interrupt.py
+++ b/tests/TestSuite_vhost_enqueue_interrupt.py
@@ -122,6 +122,7 @@ class TestVhostEnqueueInterrupt(TestCase):
command_line_client = command_client % (
self.core_mask_l3fwd, self.mem_channels,
self.queues, config_info)
+ self.vhost.get_session_before(timeout=2)
self.vhost.send_expect(command_line_client, "POWER", 40)
time.sleep(10)
out = self.vhost.get_session_before()
@@ -142,8 +143,8 @@ class TestVhostEnqueueInterrupt(TestCase):
self.verify_info[i]['queue'])
elif status == "sleeps":
info = "lcore %s sleeps until interrupt triggers" % self.verify_info[i]["core"]
- self.logger.info(info)
self.verify(info in out, "The CPU status not right for %s" % info)
+ self.logger.info(info)
def send_and_verify(self):
"""
--
2.7.4
More information about the dts
mailing list