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 0ED6FA0032; Wed, 16 Mar 2022 07:57:19 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CBB4A410EC; Wed, 16 Mar 2022 07:57:18 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id E53D040395 for ; Wed, 16 Mar 2022 07:57:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647413837; x=1678949837; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Gm9dxLqM8nYkWBgsaJ2nRI0InXRuxgNEX/1xRzEWNCI=; b=bZG7dsU2OnSJp+pgGfL2koV2V4tUQ6xGixELKCHb9J1F/rqDIOCNqiEo gC0kLg4lvI2HSkD5GsEkcY4Sh4AQ/bef1nBTPBuGoK3/kkWEzn+w+BDMp maIvyBK78ms9MF7IVJWEbbkhzqhDOgzS/ssjNNg//EXEOu5Nhe7w4Iav+ BNoNXlCUlVzBrE9OuuHn5EmaAyOZqoFZSn7mCI2PS6caplRw0hFYa+5wl gFHw1ng2/lyg5zwRKUnwh31bl8BsHzIwSzTANUHc5L7lbN8/6X87BymBa Rz0V5Szq0LTQoYB7bBFXIiv6T1OSfaUJFW9k+lE/9R+w00zwm6DurFiF4 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10286"; a="243961620" X-IronPort-AV: E=Sophos;i="5.90,186,1643702400"; d="scan'208";a="243961620" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2022 23:57:14 -0700 X-IronPort-AV: E=Sophos;i="5.90,186,1643702400"; d="scan'208";a="613536713" Received: from shwdenpg197.ccr.corp.intel.com ([10.253.109.70]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2022 23:57:12 -0700 From: Jun Dong To: dts@dpdk.org Cc: lijuan.tu@intel.com, qingx.sun@intel.com, junx.dong@intel.com Subject: [dts] [V1] Add timeout parameter and default value for start_testpmd API Date: Wed, 16 Mar 2022 14:57:04 +0800 Message-Id: <20220316065704.1080-1-junx.dong@intel.com> X-Mailer: git-send-email 2.33.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Jun Dong --- framework/pmd_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/pmd_output.py b/framework/pmd_output.py index bb0fa04b..f27c2513 100644 --- a/framework/pmd_output.py +++ b/framework/pmd_output.py @@ -112,6 +112,7 @@ class PmdOutput: socket=0, fixed_prefix=False, expected="testpmd> ", + timeout=120, **config, ): """ @@ -170,7 +171,6 @@ class PmdOutput: command = command.replace(" ", " ") if self.session != self.dut: self.session.send_expect("cd %s" % self.dut.base_dir, "# ") - 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. -- 2.33.1.windows.1