perf/nvmf: add option to skip SPDK build on initiators
Skip copying and building SPDK on host systems if specified in configuration file. Signed-off-by: Karol Latecki <karol.latecki@intel.com> Change-Id: I4f9c0dd77e020dfd866f52dc138526e63dd9222d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3075 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com>
This commit is contained in:
parent
d3f46b279b
commit
c0ff295493
@ -855,15 +855,16 @@ if __name__ == "__main__":
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
# Copy and install SPDK on remote initiators
|
# Copy and install SPDK on remote initiators
|
||||||
target_obj.zip_spdk_sources(target_obj.spdk_dir, spdk_zip_path)
|
if "skip_spdk_install" not in data["general"]:
|
||||||
threads = []
|
target_obj.zip_spdk_sources(target_obj.spdk_dir, spdk_zip_path)
|
||||||
for i in initiators:
|
threads = []
|
||||||
if i.mode == "spdk":
|
for i in initiators:
|
||||||
t = threading.Thread(target=i.install_spdk, args=(spdk_zip_path,))
|
if i.mode == "spdk":
|
||||||
threads.append(t)
|
t = threading.Thread(target=i.install_spdk, args=(spdk_zip_path,))
|
||||||
t.start()
|
threads.append(t)
|
||||||
for t in threads:
|
t.start()
|
||||||
t.join()
|
for t in threads:
|
||||||
|
t.join()
|
||||||
|
|
||||||
target_obj.tgt_start()
|
target_obj.tgt_start()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user