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 F0233A04FD; Fri, 19 Aug 2022 07:50:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CFC4D40156; Fri, 19 Aug 2022 07:50:06 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 65F95400D7 for ; Fri, 19 Aug 2022 07:50:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660888205; x=1692424205; h=from:to:cc:subject:date:message-id; bh=P5bUU4r8A2eidWyi3X4/yEQ1GIQ2rSbQEQ6jet5lYQM=; b=AUBo8SnRBKfUMvX0W8LeAFdLNEvGmAc5np88kGAb/nS+Unx1yX8DAtOv 9KoBjFOYcQovWb+0Puhwi+6YI+i8VjkruC8vVAEaqaa86TkZ4w9Gyo8mT 0kFE5JkvsTeaSqaWWBq685E3j9CZLI/uMSJ6oseNNQV09fb35adqCNHVw iWY6EXZKuIGq9YD67Dc/q1umatZm8ssQJEpsHr360YDcD6L8WyUd5y354 YwScVgJ9gLyzaA2+IWvdrqLaL/a831sIr5vd5y+/pRxADXD4YPbUNOGlI HKjaeHsI5KBnMAiygtlz99cSR9VDYTpoBKV71VpB4NTbCbXkBSkk3vMpX w==; X-IronPort-AV: E=McAfee;i="6500,9779,10443"; a="356927178" X-IronPort-AV: E=Sophos;i="5.93,247,1654585200"; d="scan'208";a="356927178" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2022 22:50:04 -0700 X-IronPort-AV: E=Sophos;i="5.93,247,1654585200"; d="scan'208";a="668441255" Received: from unknown (HELO cvl_100g_103.icx.intel.com) ([10.239.252.93]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2022 22:50:03 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Subject: [dts][PATCH V2 1/3] framework/*:add dcf mode into execution file Date: Fri, 19 Aug 2022 22:07:07 +0800 Message-Id: <20220819140709.16971-1-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.17.1 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. if take dcf mode,add dcf_mode=enable into execution.cfg. Signed-off-by: Zhimin Huang --- 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