test suite reviews and discussions
 help / color / mirror / Atom feed
From: Zhimin Huang <zhiminx.huang@intel.com>
To: dts@dpdk.org
Cc: Zhimin Huang <zhiminx.huang@intel.com>
Subject: [dts][PATCH V2 1/3] framework/*:add dcf mode into execution file
Date: Fri, 19 Aug 2022 22:07:07 +0800	[thread overview]
Message-ID: <20220819140709.16971-1-zhiminx.huang@intel.com> (raw)

add dcf_mode parm into execution file configuration.
if take dcf mode,add dcf_mode=enable into execution.cfg.

Signed-off-by: Zhimin Huang <zhiminx.huang@intel.com>
---
 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


             reply	other threads:[~2022-08-19  5:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-19 14:07 Zhimin Huang [this message]
2022-08-19 14:07 ` [dts][PATCH V2 2/3] test_plans/*:add 22.07 new feature, support in dcf mode Zhimin Huang
2022-08-19 14:07 ` [dts][PATCH V2 3/3] tests/*:add " Zhimin Huang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220819140709.16971-1-zhiminx.huang@intel.com \
    --to=zhiminx.huang@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).