[V1,1/3] framework/dts: optimize code

Message ID 20201104092108.13778-2-haiyangx.zhao@intel.com (mailing list archive)
State Accepted
Headers
Series framework: add eal paramters for different rx modes |

Commit Message

Zhao, HaiyangX Nov. 4, 2020, 9:21 a.m. UTC
  *.save rx_mode with lower case.

Signed-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>
---
 framework/dts.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

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'