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 5360DA00C4; Thu, 6 Oct 2022 18:20:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4FCCD4114E; Thu, 6 Oct 2022 18:20:56 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id BACDB40042 for ; Thu, 6 Oct 2022 18:20:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665073254; x=1696609254; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=9SRsMdr5m4U952m/LrJl0lBJ1G8fPZMJuMym6IU/Cq4=; b=hwRERfnWX8oXzRVMH0DNDOof70mJLt6cwJ9Cfd53LKIdWVBCOGE3qSaF JQ8f8hwCykl5/1RUV8c+zwXtTZnZBp+RG3pJ0Cd1PZd0qQWCWx0+WWEUt 98NqBOKf2lPL/Z113Dlzgexi4mKxVhQ2lCWS17kk3yeBRVAihLd/IKA+2 H5vl1k4Sy3cMBJc4ZONO652nnrJyvrPgCQvz4TfFynpo3rHhiQwwLLUWn byMcAaX1+RwYdUTSs/6nQgPjxpt6jSBOa/XLL1zxZil/097CbTAbsRKHx LvydZUD0cgT74SzpYBqr2dsf1mlvgOBiKOukhDcsKHjnQJ/TR3o7N+ctS A==; X-IronPort-AV: E=McAfee;i="6500,9779,10492"; a="303469899" X-IronPort-AV: E=Sophos;i="5.95,164,1661842800"; d="scan'208";a="303469899" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2022 09:20:53 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10492"; a="575888450" X-IronPort-AV: E=Sophos;i="5.95,164,1661842800"; d="scan'208";a="575888450" Received: from unknown (HELO cvl_100g_103.icx.intel.com) ([10.239.252.93]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2022 09:20:52 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Subject: [dts][PATCH V6 1/3] framework/*:add config dcf mode in execution file Date: Fri, 7 Oct 2022 08:31:35 +0800 Message-Id: <20221007003137.12787-2-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221007003137.12787-1-zhiminx.huang@intel.com> References: <20221007003137.12787-1-zhiminx.huang@intel.com> 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 add dcf_mode parm into execution file configuration to support start testpmd with dcf. if take dcf mode,add dcf_mode=enable into execution.cfg. Signed-off-by: Zhimin Huang Acked-by: Xueqin Lin --- v6: -optimize test script and testplan v5: -add more comments framework/dts.py | 6 ++++++ framework/settings.py | 1 + 2 files changed, 7 insertions(+) diff --git a/framework/dts.py b/framework/dts.py index a894c461..a8e670b5 100644 --- a/framework/dts.py +++ b/framework/dts.py @@ -141,7 +141,13 @@ def dts_parse_config(config, section): except: rx_mode = "default" + try: + dcf_mode = config.get(section, "dcf_mode").strip().lower() + except: + dcf_mode = "" + settings.save_global_setting(settings.DPDK_RXMODE_SETTING, rx_mode) + settings.save_global_setting(settings.DPDK_DCFMODE_SETTING, dcf_mode) for suite in test_suites: if suite == "": diff --git a/framework/settings.py b/framework/settings.py index 2e7bcfa5..65029668 100644 --- a/framework/settings.py +++ b/framework/settings.py @@ -235,6 +235,7 @@ HOST_SHARED_LIB_PATH = "DTS_HOST_SHARED_LIB_PATH" DEBUG_SETTING = "DTS_DEBUG_ENABLE" DEBUG_CASE_SETTING = "DTS_DEBUGCASE_ENABLE" DPDK_RXMODE_SETTING = "DTS_DPDK_RXMODE" +DPDK_DCFMODE_SETTING = "DTS_DPDK_DCFMODE" DTS_ERROR_ENV = "DTS_RUNNING_ERROR" DTS_CFG_FOLDER = "DTS_CFG_FOLDER" DTS_PARALLEL_SETTING = "DTS_PARALLEL_ENABLE" -- 2.17.1