From 1b63543e7f29450ffe462e19880df283d1798156 Mon Sep 17 00:00:00 2001 From: Vivek Date: Tue, 25 Apr 2023 02:17:02 -0400 Subject: [PATCH] [Mellanox] Fix the hw-mgmt intg tool case sensitivity for KConfig (#14709) Fix the script to consider case sensitivity while writing the kconfig Signed-off-by: Vivek Reddy Karri --- platform/mellanox/integration-scripts/helper.py | 2 +- .../mellanox/integration-scripts/tests/test_filehandler.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/mellanox/integration-scripts/helper.py b/platform/mellanox/integration-scripts/helper.py index 4c7587e516..1b498130bc 100644 --- a/platform/mellanox/integration-scripts/helper.py +++ b/platform/mellanox/integration-scripts/helper.py @@ -156,7 +156,7 @@ class KCFG: def get_writable_opts(opts): lines = [] for opt in opts: - lines.append("{}={}".format(opt[0].upper(), opt[1])) + lines.append("{}={}".format(opt[0], opt[1])) return lines diff --git a/platform/mellanox/integration-scripts/tests/test_filehandler.py b/platform/mellanox/integration-scripts/tests/test_filehandler.py index 8b7c39ae13..a38328d839 100644 --- a/platform/mellanox/integration-scripts/tests/test_filehandler.py +++ b/platform/mellanox/integration-scripts/tests/test_filehandler.py @@ -48,7 +48,7 @@ CONFIG_DW_DMAC_PCI=y CONFIG_I2C_I801=m CONFIG_PINCTRL=y CONFIG_PINCTRL_INTEL=m -CONFIG_I2C_MUX_PCA954X=m +CONFIG_I2C_MUX_PCA954x=m CONFIG_SPI_PXA2XX=m """ @@ -68,7 +68,7 @@ CONFIG_DW_DMAC_PCI=y CONFIG_I2C_I801=m CONFIG_PINCTRL=y CONFIG_PINCTRL_INTEL=m -CONFIG_I2C_MUX_PCA954X=m +CONFIG_I2C_MUX_PCA954x=m CONFIG_SPI_PXA2XX=m ###-> mellanox-end