test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] tests/vhost_enqueue_interrupt: flush output buffer before launch l3fwd
@ 2019-08-12 23:59 lihong
  2019-08-14  2:43 ` Wang, Yinan
  0 siblings, 1 reply; 2+ messages in thread
From: lihong @ 2019-08-12 23:59 UTC (permalink / raw)
  To: dts; +Cc: lihong

flush output buffer before launch l3fwd
print logger info after verify successful

Signed-off-by: lihong <lihongx.ma@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


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

* Re: [dts] [PATCH V1] tests/vhost_enqueue_interrupt: flush output buffer before launch l3fwd
  2019-08-12 23:59 [dts] [PATCH V1] tests/vhost_enqueue_interrupt: flush output buffer before launch l3fwd lihong
@ 2019-08-14  2:43 ` Wang, Yinan
  0 siblings, 0 replies; 2+ messages in thread
From: Wang, Yinan @ 2019-08-14  2:43 UTC (permalink / raw)
  To: Ma, LihongX, dts; +Cc: Ma, LihongX

Acked-by: Wang, Yinan <yinan.wang@intel.com>

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong
> Sent: 2019^[$BG/^[(B8^[$B7n^[(B13^[$BF|^[(B 7:59
> To: dts@dpdk.org
> Cc: Ma, LihongX <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V1] tests/vhost_enqueue_interrupt: flush output buffer
> before launch l3fwd
> 
> flush output buffer before launch l3fwd
> print logger info after verify successful
> 
> Signed-off-by: lihong <lihongx.ma@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


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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-12 23:59 [dts] [PATCH V1] tests/vhost_enqueue_interrupt: flush output buffer before launch l3fwd lihong
2019-08-14  2:43 ` Wang, Yinan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://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/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


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