From 04ad0ad9f118755678157031c2c2ab3568af69ea Mon Sep 17 00:00:00 2001 From: Liang Yan Date: Mon, 14 May 2018 10:19:22 +0800 Subject: [PATCH] test/rpc: add multiple NVMe bdev support in the rpc_config.py Change-Id: I923c808affabdb97a5237b76f9f5534d6fb41601 Signed-off-by: Liang Yan Reviewed-on: https://review.gerrithub.io/411048 Tested-by: SPDK Automated Test System Reviewed-by: Daniel Verkamp Reviewed-by: Changpeng Liu --- test/iscsi_tgt/rpc_config/rpc_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/iscsi_tgt/rpc_config/rpc_config.py b/test/iscsi_tgt/rpc_config/rpc_config.py index ae6068ef3..6ee2c5a42 100755 --- a/test/iscsi_tgt/rpc_config/rpc_config.py +++ b/test/iscsi_tgt/rpc_config/rpc_config.py @@ -461,7 +461,7 @@ def verify_add_nvme_bdev_rpc_methods(rpc_py): output = check_output(["lspci", "-mm", "-nn"]) addrs = re.findall('^([0-9]{2}:[0-9]{2}.[0-9]) "Non-Volatile memory controller \[0108\]".*-p02', output.decode(), re.MULTILINE) for addr in addrs: - ctrlr_address = "-b Nvme0 -t pcie -a 0000:{}".format(addr) + ctrlr_address = "-b Nvme{} -t pcie -a 0000:{}".format(addrs.index(addr), addr) rpc.construct_nvme_bdev(ctrlr_address) print("add nvme device passed first time") test_pass = 0