From c0ff295493c4f858b413655be39b2b6ba83606f7 Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Fri, 26 Jun 2020 08:33:27 +0200 Subject: [PATCH] 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 Change-Id: I4f9c0dd77e020dfd866f52dc138526e63dd9222d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3075 Tested-by: SPDK CI Jenkins Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris Reviewed-by: Tomasz Zawadzki Reviewed-by: Maciej Wawryk --- scripts/perf/nvmf/run_nvmf.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/scripts/perf/nvmf/run_nvmf.py b/scripts/perf/nvmf/run_nvmf.py index deba127ae..ab89930e2 100755 --- a/scripts/perf/nvmf/run_nvmf.py +++ b/scripts/perf/nvmf/run_nvmf.py @@ -855,15 +855,16 @@ if __name__ == "__main__": continue # Copy and install SPDK on remote initiators - target_obj.zip_spdk_sources(target_obj.spdk_dir, spdk_zip_path) - threads = [] - for i in initiators: - if i.mode == "spdk": - t = threading.Thread(target=i.install_spdk, args=(spdk_zip_path,)) - threads.append(t) - t.start() - for t in threads: - t.join() + if "skip_spdk_install" not in data["general"]: + target_obj.zip_spdk_sources(target_obj.spdk_dir, spdk_zip_path) + threads = [] + for i in initiators: + if i.mode == "spdk": + t = threading.Thread(target=i.install_spdk, args=(spdk_zip_path,)) + threads.append(t) + t.start() + for t in threads: + t.join() target_obj.tgt_start()