Skip to content

Commit

Permalink
Change the PTF code to handle single or multi asic as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
rraghav-cisco committed Jan 6, 2025
1 parent bbed02b commit d2d8f5f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions tests/saitests/py3/sai_qos_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3856,8 +3856,20 @@ def runTest(self):
self.test_params['dut_username'],
self.test_params['dut_password'],
cmd)
if err != "" and out == "":
raise RuntimeError("cmd({}) might have failed in the DUT. Error:{}".format(cmd, err))
if err and out == []:
if "Invalid value for " in " ".join(err):
cmd = "sudo show platform npu script -s set_scheduler.py"
out, err, ret = self.exec_cmd_on_dut(
self.dst_server_ip,
self.test_params['dut_username'],
self.test_params['dut_password'],
cmd)
if err and out == []:
raise RuntimeError("cmd({}) might have failed in the DUT. Error:{}".format(cmd, err))
else:
print("Success in setting scheduler in sAsic DUT.", file=sys.stderr)
else:
print("Success in setting scheduler in mAsic DUT.", file=sys.stderr)
else:
# Release port
self.sai_thrift_port_tx_enable(
Expand Down

0 comments on commit d2d8f5f

Please sign in to comment.