test/vhost_perf: use system fio if not specified by user
Use system-wide fio if a specific binary was not provided. Additionally add 1 second delay after finishing fio run to make sure fio client-server finishes correctly. Signed-off-by: Karol Latecki <karol.latecki@intel.com> Change-Id: Id7d1e7f70017755206c8fe9942ef8d6051a73bbe Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2559 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
d3e367a5f1
commit
2c7ba231d3
@ -1066,6 +1066,10 @@ function run_fio() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [[ -z "$fio_bin" ]]; then
|
||||
fio_bin="fio"
|
||||
fi
|
||||
|
||||
if [[ ! -r "$job_file" ]]; then
|
||||
error "Fio job '$job_file' does not exist"
|
||||
return 1
|
||||
@ -1121,6 +1125,7 @@ function run_fio() {
|
||||
fi
|
||||
|
||||
$fio_start_cmd
|
||||
sleep 1
|
||||
|
||||
if [[ ! $hide_results ]]; then
|
||||
cat $out/$log_fname
|
||||
|
@ -23,7 +23,6 @@ split_bdevs=()
|
||||
used_vms=""
|
||||
wwpn_prefix="naa.5001405bc6498"
|
||||
|
||||
fio_bin="--fio-bin=/home/sys_sgsw/fio_ubuntu"
|
||||
fio_iterations=1
|
||||
precond_fio_bin=$CONFIG_FIO_SOURCE_DIR/fio
|
||||
disk_map=""
|
||||
|
Loading…
Reference in New Issue
Block a user