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 CBCBEA0521; Tue, 28 Jul 2020 05:22:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8B8911BFF3; Tue, 28 Jul 2020 05:22:42 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id A85F71BFF2 for ; Tue, 28 Jul 2020 05:22:40 +0200 (CEST) IronPort-SDR: HuFTLaFHLqS0xUiO+qHr1Tf8F7BYOF79hehtiHVUBUTsZElkZI2zmA+8n034Uh2rtoapxoMh9F cZzNOICTx2EA== X-IronPort-AV: E=McAfee;i="6000,8403,9695"; a="169257205" X-IronPort-AV: E=Sophos;i="5.75,404,1589266800"; d="scan'208";a="169257205" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2020 20:22:39 -0700 IronPort-SDR: 49Z1wng9jVDq7iuvAuAoAvPWr60YSeY7q2elw3mzmUE1atLTYgRQ2Mcl5huQAOPgoNN+U6Kglu vFXdTrj2BHVg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,404,1589266800"; d="scan'208";a="394196989" Received: from unknown (HELO localhost.localdomain) ([10.240.183.52]) by fmsmga001.fm.intel.com with ESMTP; 27 Jul 2020 20:22:38 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Tue, 28 Jul 2020 03:00:43 +0000 Message-Id: <20200728030043.256733-1-qimaix.xiao@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1]virtio_pvp_regression: add retry when get dpdk promte to avoid print sequence issue 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" *. dpdk promte 'testpmd> ' might be misspelled when print Signed-off-by: Xiao Qimai --- tests/TestSuite_virtio_pvp_regression.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_virtio_pvp_regression.py b/tests/TestSuite_virtio_pvp_regression.py index 225fc35..942c924 100644 --- a/tests/TestSuite_virtio_pvp_regression.py +++ b/tests/TestSuite_virtio_pvp_regression.py @@ -257,7 +257,14 @@ class TestVirtioPVPRegression(TestCase): command_line_client = testcmd + eal_params + para self.vhost.send_expect(command_line_client, "testpmd> ", 30) self.vhost.send_expect("set fwd mac", "testpmd> ", 30) - self.vhost.send_expect("start", "testpmd> ", 30) + try: + self.vhost.send_expect("start", "testpmd> ", 30) + except Exception as e: + self.logger.warning(e) + self.logger.info('dpdk prompt testpmd> may not be printed correctly, add retry') + time.sleep(2) + self.vhost.send_expect('', 'testpmd> ', timeout=1) + def start_testpmd_in_vm(self, virtio_path): """ -- 2.25.1