From 85d0f9a83aabbfa7ec1f7469e3301dcb56bb398e Mon Sep 17 00:00:00 2001 From: Darek Stojaczyk Date: Thu, 30 Apr 2020 16:14:54 +0200 Subject: [PATCH] test/nvme/hotplug: don't copy unnecessary files to the VM This cuts down even 10 seconds. We only need a few binaries and spdk ./scripts directory on the VM, not all SPDK sources. Change-Id: If63bdaec9ee4cf3f42ab7fce1bf107847580dbf7 Signed-off-by: Darek Stojaczyk Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2145 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- test/nvme/hotplug.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/nvme/hotplug.sh b/test/nvme/hotplug.sh index 615958871..7d12b6418 100755 --- a/test/nvme/hotplug.sh +++ b/test/nvme/hotplug.sh @@ -104,10 +104,13 @@ ssh_vm 'echo ready' timing_exit wait_for_vm timing_enter copy_repo +files_to_copy="scripts " +files_to_copy+="include/spdk/pci_ids.h " +files_to_copy+="examples/nvme/hotplug/hotplug " ( cd "$rootdir" - tar -cf - . -) | (ssh_vm 'tar -xf -') + tar -cf - $files_to_copy +) | (ssh_vm "tar -xf -") timing_exit copy_repo devices_initialization