scripts/nvmf_perf: reuse get_connected_nvme_list()
Signed-off-by: Karol Latecki <karol.latecki@intel.com> Change-Id: I1ccc18e9a025faea87ef4328bd79be7c3574ebf6 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8743 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Pawel Piatek <pawelx.piatek@intel.com>
This commit is contained in:
parent
0574f36dea
commit
8dace9e26c
@ -1247,9 +1247,7 @@ class KernelInitiator(Initiator):
|
||||
time.sleep(1)
|
||||
|
||||
def gen_fio_filename_conf(self, threads, io_depth, num_jobs=1):
|
||||
out = self.exec_cmd(["sudo", "nvme", "list", "|", "grep", "-E", "'SPDK|Linux'",
|
||||
"|", "awk", "'{print $1}'"])
|
||||
nvme_list = [x for x in out.split("\n") if "nvme" in x]
|
||||
nvme_list = [os.path.join("/dev", nvme) for nvme in self.get_connected_nvme_list()]
|
||||
|
||||
filename_section = ""
|
||||
nvme_per_split = int(len(nvme_list) / len(threads))
|
||||
|
Loading…
Reference in New Issue
Block a user