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 1CDF0A0A0F; Fri, 9 Apr 2021 05:12:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D54891412E7; Fri, 9 Apr 2021 05:12:57 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id CD34E4068E for ; Fri, 9 Apr 2021 05:12:55 +0200 (CEST) IronPort-SDR: kjpwYPuMV0/jwpjdC2ovXMaAlwgTIM1VYYuE1MoUEPuQun72ivM05oNb02cNx1AYjYVTTx9ryk +InwR1WrrHDg== X-IronPort-AV: E=McAfee;i="6000,8403,9948"; a="191527353" X-IronPort-AV: E=Sophos;i="5.82,208,1613462400"; d="scan'208";a="191527353" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 20:12:54 -0700 IronPort-SDR: tp7WeZ2EL6D8jsjWGYCjg/cVGP10bomsX+/k/M6ShQ48Z9PKW79G05wAsTzHBg4yidrV8Uc7mS /bKTwMQUq4GA== X-IronPort-AV: E=Sophos;i="5.82,208,1613462400"; d="scan'208";a="422537052" 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:12:52 -0700 From: sunqin To: dts@dpdk.org Cc: sunqin Date: Fri, 9 Apr 2021 11:48:04 +0000 Message-Id: <20210409114804.31115-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