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 D313BA0579; Fri, 9 Apr 2021 05:50:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA5F71412F1; Fri, 9 Apr 2021 05:50:38 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id D6A244068E for ; Fri, 9 Apr 2021 05:50:36 +0200 (CEST) IronPort-SDR: H3nCHPa3F6NxsQTxUmWCnsqjfdTpDdw+tCLP3Ord/ov8Vz9ENJDhILcjXcU+0ysPILNXVBuIfS BIovsmQknHoQ== X-IronPort-AV: E=McAfee;i="6000,8403,9948"; a="180812191" X-IronPort-AV: E=Sophos;i="5.82,208,1613462400"; d="scan'208";a="180812191" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 20:50:35 -0700 IronPort-SDR: aqeeZomKxXPE8GhcJ5MEfXijvJtthTGMjW8yv9zprRPZCr+VQJy5IdMwG1Q2k3lStcVWhgz9si W9LJGsvHuvDQ== X-IronPort-AV: E=Sophos;i="5.82,208,1613462400"; d="scan'208";a="422550120" Received: from unknown (HELO localhost.localdomain) ([10.240.183.105]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 20:50:32 -0700 From: sunqin To: dts@dpdk.org Cc: sunqin Date: Fri, 9 Apr 2021 12:25:48 +0000 Message-Id: <20210409122548.31485-1-qinx.sun@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] framework/pmd_output: add timeout parameter for start_pmd method 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" some cases start testpmd with 'cmdline-file' may need more than 120 seconds, so add 'timeout' parameter to support customization and default value still set as 120 Signed-off-by: sunqin --- framework/pmd_output.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/pmd_output.py b/framework/pmd_output.py index 1ad4ce79..838fa0bd 100644 --- a/framework/pmd_output.py +++ b/framework/pmd_output.py @@ -148,7 +148,8 @@ 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, expected, 120) + timeout = config.get('timeout',120) + out = self.session.send_expect(command, expected, timeout) self.command = command # wait 10s to ensure links getting up before test start. sleep(10) -- 2.17.1