From ce6550a935bcdecb94a3502bb8a50e89b3378cec Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Tue, 13 Dec 2022 14:08:17 +0100 Subject: [PATCH] test/vhost: Add VM's id to fio config's description Since we are sending fio configuration to potentially dozens of VMs, proper description allows to identify final results on per-VM basis - this is helpful during debugging. Signed-off-by: Michal Berger Change-Id: Ifc38d9cb60879f8b7f6e178f23e3f451a73765f0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15895 Reviewed-by: Karol Latecki Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- test/vhost/common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/vhost/common.sh b/test/vhost/common.sh index 147324a67..4a7893fd8 100644 --- a/test/vhost/common.sh +++ b/test/vhost/common.sh @@ -1121,7 +1121,8 @@ function run_fio() { local vm_num=${vm%%:*} local vmdisks=${vm#*:} - sed "s@filename=@filename=$vmdisks@" $job_file | vm_exec $vm_num "cat > /root/$job_fname" + sed "s@filename=@filename=$vmdisks@;s@description=\(.*\)@description=\1 (VM=$vm_num)@" "$job_file" \ + | vm_exec $vm_num "cat > /root/$job_fname" if $fio_gtod_reduce; then vm_exec $vm_num "echo 'gtod_reduce=1' >> /root/$job_fname"