diff --git a/tests/generic_config_updater/test_mmu_dynamic_threshold_config_update.py b/tests/generic_config_updater/test_mmu_dynamic_threshold_config_update.py index 0d80da1ed65..b03c06923f4 100644 --- a/tests/generic_config_updater/test_mmu_dynamic_threshold_config_update.py +++ b/tests/generic_config_updater/test_mmu_dynamic_threshold_config_update.py @@ -92,7 +92,9 @@ def get_pg_lossless_profiles(duthost): Args: duthost: DUT host object """ - pg_lossless_profiles_str = duthost.shell("redis-cli -n 0 KEYS *BUFFER_PROFILE_TABLE:pg_lossless*")["stdout_lines"] + pg_lossless_profiles_str = duthost.shell( + "sonic-db-cli APPL_DB KEYS *BUFFER_PROFILE_TABLE:pg_lossless*" + )["stdout_lines"] pg_lossless_profiles_lst = [] for pg_lossless_profile_str in pg_lossless_profiles_str: diff --git a/tests/iface_namingmode/test_iface_namingmode.py b/tests/iface_namingmode/test_iface_namingmode.py index 4a94e87aeb4..d545b2abbd9 100644 --- a/tests/iface_namingmode/test_iface_namingmode.py +++ b/tests/iface_namingmode/test_iface_namingmode.py @@ -210,7 +210,7 @@ def select_interface_for_mellnaox_device(setup, duthost): ERR swss#orchagent: :- processPriorityGroup: Failed to set port:Ethernet0 pg:3 buffer profile attribute, status:-4 """ selected_interface = '' - interface_cable_length_list = duthost.shell('redis-cli -n 4 hgetall "CABLE_LENGTH|AZURE" ')['stdout_lines'] + interface_cable_length_list = duthost.shell('sonic-db-cli CONFIG_DB hgetall "CABLE_LENGTH|AZURE" ')['stdout_lines'] support_cable_length_list = ["40m", "5m"] for intf in setup['physical_interfaces']: if intf in interface_cable_length_list: @@ -317,7 +317,7 @@ def test_show_interfaces_counter(self, setup, setup_config_mode): if regex_int.match(line): interfaces.append(regex_int.match(line).group(0)) - assert(len(interfaces) > 0) + assert (len(interfaces) > 0) for item in interfaces: if mode == 'alias': @@ -551,7 +551,7 @@ def test_show_queue_counters(self, setup, setup_config_mode, duthosts, enum_rand intfsChecked += 1 # At least one interface should have been checked to have a valid result - assert(intfsChecked > 0) + assert (intfsChecked > 0) def test_show_queue_counters_interface(self, setup_config_mode, sample_intf): """