From f6bdf7fe9df78b572d3fc557244614844f3478ea Mon Sep 17 00:00:00 2001 From: Neetha John Date: Mon, 8 Mar 2021 15:09:33 -0800 Subject: [PATCH] Align SonicAsic command args to the new method format Signed-off-by: Neetha John --- tests/qos/qos_sai_base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/qos/qos_sai_base.py b/tests/qos/qos_sai_base.py index c576f042247..b690824d718 100644 --- a/tests/qos/qos_sai_base.py +++ b/tests/qos/qos_sai_base.py @@ -791,7 +791,7 @@ def populateArpEntries( elif dutTestParams["topo"] in self.SUPPORTED_PTF_TOPOS: saiQosTest = "sai_qos_tests.ARPpopulatePTF" else: - result = dut_asic.command(argv = ["arp", "-n"]) + result = dut_asic.command("arp -n") pytest_assert(result["rc"] == 0, "failed to run arp command on {0}".format(duthost.hostname)) if result["stdout"].find("incomplete") == -1: saiQosTest = "sai_qos_tests.ARPpopulate" @@ -1064,6 +1064,6 @@ def resetWatermark( """ duthost = duthosts[rand_one_dut_hostname] dut_asic = duthost.asic_instance(enum_frontend_asic_index) - dut_asic.command(argv = ["counterpoll", "watermark", "enable"]) - dut_asic.command(argv = ["sleep", "20"]) - dut_asic.command(argv = ["counterpoll", "watermark", "disable"]) + dut_asic.command("counterpoll watermark enable") + dut_asic.command("sleep 20") + dut_asic.command("counterpoll watermark disable")