From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 12AD5A052A; Tue, 2 Feb 2021 06:35:46 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C80C3240242; Tue, 2 Feb 2021 06:35:45 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 117FD240241 for ; Tue, 2 Feb 2021 06:35:43 +0100 (CET) IronPort-SDR: pxWjx/yWbQdP/SKkekDcNagQafe72XkYv7yxBQR8Pr2azUXPbRj/yCPCr3X9VuOfBKkKr6NopF +SdVlu/wINeA== X-IronPort-AV: E=McAfee;i="6000,8403,9882"; a="180944536" X-IronPort-AV: E=Sophos;i="5.79,394,1602572400"; d="scan'208";a="180944536" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2021 21:35:42 -0800 IronPort-SDR: 4wzhnVpyjLflSN9kpvf5xVhdmr/ZILTlZ+0widBxOHsfykfnKVIaweUSQ8bJvF9s0UIwCTGACP 2F+CXho7nAnQ== X-IronPort-AV: E=Sophos;i="5.79,394,1602572400"; d="scan'208";a="391295410" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2021 21:35:41 -0800 From: Ling Wei To: dts@dpdk.org Cc: Ling Wei Date: Tue, 2 Feb 2021 13:28:58 +0000 Message-Id: <20210202132858.3876856-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] framework/pmd_output:start_testpmd interface support expected params X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" According to commit 9af79db20f4cf759b76d08941e7e62f91880892d, when launch virtio-user testpmd as server mode, virtio-user server side testpmd expected character will be 'wait for client side started...', after client side started, it change to 'testpmd>'. Signed-off-by: Ling Wei --- framework/pmd_output.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/pmd_output.py b/framework/pmd_output.py index 3daa86b6..1ad4ce79 100644 --- a/framework/pmd_output.py +++ b/framework/pmd_output.py @@ -103,7 +103,7 @@ class PmdOutput(): def get_pmd_cmd(self): return self.command - def start_testpmd(self, cores='default', param='', eal_param='', socket=0, fixed_prefix=False, **config): + def start_testpmd(self, cores='default', param='', eal_param='', socket=0, fixed_prefix=False, expected='testpmd> ', **config): """ start testpmd with input parameters. :param cores: eg: @@ -148,7 +148,7 @@ class PmdOutput(): command = command.replace(' ', ' ') if self.session != self.dut: self.session.send_expect("cd %s" % self.dut.base_dir, "# ") - out = self.session.send_expect(command, "testpmd> ", 120) + out = self.session.send_expect(command, expected, 120) self.command = command # wait 10s to ensure links getting up before test start. sleep(10) -- 2.25.1