test/vhost: add socket option only for vhost target
Skip this option when using different target (i.e. nvmf_tgt for vfio-user tests) as it might be unsupported. Signed-off-by: Karol Latecki <karol.latecki@intel.com> Change-Id: I9bc0677a6142039a1531255ca974059ee29cf705 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11015 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
4330508fff
commit
da242a6f6e
@ -150,7 +150,10 @@ function vhost_run() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
local cmd="$vhost_app -r $vhost_dir/rpc.sock -S $vhost_dir $vhost_args"
|
||||
local cmd="$vhost_app -r $vhost_dir/rpc.sock $vhost_args"
|
||||
if [[ "$vhost_bin" =~ vhost ]]; then
|
||||
cmd+=" -S $vhost_dir"
|
||||
fi
|
||||
|
||||
notice "Loging to: $vhost_log_file"
|
||||
notice "Socket: $vhost_socket"
|
||||
|
Loading…
Reference in New Issue
Block a user