diff --git a/sriov/tests/SR_IOV_Sanity_Performance/test_SR_IOV_Sanity_Performance.py b/sriov/tests/SR_IOV_Sanity_Performance/test_SR_IOV_Sanity_Performance.py index 06c884f..81a0fdd 100644 --- a/sriov/tests/SR_IOV_Sanity_Performance/test_SR_IOV_Sanity_Performance.py +++ b/sriov/tests/SR_IOV_Sanity_Performance/test_SR_IOV_Sanity_Performance.py @@ -127,7 +127,10 @@ def test_SRIOV_Sanity_Performance(dut, trafficgen, settings, testdata): testdata.testpmd_id = outs[0][0] # Check testpmd is running - cmd = f"curl localhost:{settings.config['testpmd_port']}/testpmd/status" + cmd = ( + f"curl {settings.config['dut']['host']}:" + f"{settings.config['testpmd_port']}/testpmd/status" + ) assert execute_until_timeout(dut, cmd) # Start trafficgen @@ -139,6 +142,7 @@ def test_SRIOV_Sanity_Performance(dut, trafficgen, settings, testdata): f"{settings.config['container_manager']} run -d --rm --privileged " f"-p {settings.config['trafficgen_port']}:{settings.config['trafficgen_port']} " "-v /dev:/dev -v /sys:/sys -v /lib/modules:/lib/modules " + "-v /lib/firmware:/lib/firmware " f"--cpuset-cpus {trafficgen_cpus_string} " f"-e pci_list={trafficgen_pfs_pci[0]},{trafficgen_pfs_pci[1]} " f"{settings.config['trafficgen_img']}" @@ -148,7 +152,8 @@ def test_SRIOV_Sanity_Performance(dut, trafficgen, settings, testdata): client_cmd = ( f"{settings.config['container_manager']} run --rm --privileged --net=host " - f"{settings.config['trafficgen_img']} client status --server-addr localhost " + f"{settings.config['trafficgen_img']} client status " + f"--server-addr {settings.config['trafficgen']['host']} " f"--server-port {settings.config['trafficgen_port']}" ) assert execute_until_timeout(trafficgen, client_cmd) @@ -156,7 +161,8 @@ def test_SRIOV_Sanity_Performance(dut, trafficgen, settings, testdata): # Warmup client_cmd = [ f"{settings.config['container_manager']} run --rm --privileged --net=host " - f"{settings.config['trafficgen_img']} client start --server-addr localhost " + f"{settings.config['trafficgen_img']} client start " + f"--server-addr {settings.config['trafficgen']['host']} " f"--server-port {settings.config['trafficgen_port']} --timeout 60" ] execute_and_assert( @@ -167,7 +173,8 @@ def test_SRIOV_Sanity_Performance(dut, trafficgen, settings, testdata): ) client_cmd = [ f"{settings.config['container_manager']} run --rm --privileged --net=host " - f"{settings.config['trafficgen_img']} client stop --server-addr localhost " + f"{settings.config['trafficgen_img']} client stop " + f"--server-addr {settings.config['trafficgen']['host']} " f"--server-port {settings.config['trafficgen_port']}" ] outs, errs = execute_and_assert( @@ -179,7 +186,8 @@ def test_SRIOV_Sanity_Performance(dut, trafficgen, settings, testdata): # Actual test client_cmd = [ f"{settings.config['container_manager']} run --rm --privileged --net=host " - f"{settings.config['trafficgen_img']} client auto --server-addr localhost " + f"{settings.config['trafficgen_img']} client auto " + f"--server-addr {settings.config['trafficgen']['host']} " f"--server-port {settings.config['trafficgen_port']}" ] outs, errs = execute_and_assert(