From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EF149A0471 for ; Tue, 13 Aug 2019 09:22:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DEBDE5681; Tue, 13 Aug 2019 09:22:11 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 8D444DE3 for ; Tue, 13 Aug 2019 09:22:09 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Aug 2019 00:22:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,380,1559545200"; d="scan'208";a="176128523" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.119.68]) by fmsmga008.fm.intel.com with ESMTP; 13 Aug 2019 00:22:08 -0700 From: lihong To: dts@dpdk.org Cc: lihong Date: Tue, 13 Aug 2019 07:59:00 +0800 Message-Id: <1565654340-32091-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] tests/vhost_enqueue_interrupt: flush output buffer before launch l3fwd X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" flush output buffer before launch l3fwd print logger info after verify successful Signed-off-by: lihong --- 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