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 8EB71A04E7; Wed, 4 Nov 2020 10:22:43 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 87912C8A6; Wed, 4 Nov 2020 10:22:42 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 25125C864 for ; Wed, 4 Nov 2020 10:22:40 +0100 (CET) IronPort-SDR: VpvmdUPwjbynanysrUDZ6veEBTYz2MYdNIs3r2ph2borTy52TOo5jImjoEVcfI/f4X+9v2dg9r peoIrTvgdfJg== X-IronPort-AV: E=McAfee;i="6000,8403,9794"; a="230815951" X-IronPort-AV: E=Sophos;i="5.77,450,1596524400"; d="scan'208";a="230815951" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2020 01:22:39 -0800 IronPort-SDR: wSL32MynLM4PltxTQbp2R3rnyrtLE8Ysrb62+tENLftYif2nV6FPaJpJs4NXEj/n9kmbIcQ5DH gwEH0roF/8lA== X-IronPort-AV: E=Sophos;i="5.77,450,1596524400"; d="scan'208";a="538844436" Received: from unknown (HELO localhost.localdomain) ([10.240.183.55]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2020 01:22:37 -0800 From: Haiyang Zhao To: Lijuan.Tu@intel.com, dts@dpdk.org Cc: Haiyang Zhao Date: Wed, 4 Nov 2020 17:21:06 +0800 Message-Id: <20201104092108.13778-2-haiyangx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201104092108.13778-1-haiyangx.zhao@intel.com> References: <20201104092108.13778-1-haiyangx.zhao@intel.com> Subject: [dts] [PATCH V1 1/3] framework/dts: optimize code 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" *.save rx_mode with lower case. Signed-off-by: Haiyang Zhao --- framework/dts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/dts.py b/framework/dts.py index e4cc53f..8a3790e 100644 --- a/framework/dts.py +++ b/framework/dts.py @@ -160,7 +160,7 @@ def dts_parse_config(config, section): test_suites = [suite.strip() for suite in config.get(section, 'test_suites').split(',')] try: - rx_mode = config.get(section, 'rx_mode').strip() + rx_mode = config.get(section, 'rx_mode').strip().lower() except: rx_mode = 'default' -- 2.17.1