test/vhost: don't change directory during vhost_run
There's a directory change along the way which can interfere with other test scripts. This is most probably done to create vhost sockets in desired location. Use "-S" option instead. Signed-off-by: Karol Latecki <karol.latecki@intel.com> Change-Id: I95383def6cd1d1fc6a7760f0f7f468b87cbd8923 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8777 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Michal Berger <michalx.berger@intel.com> Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
This commit is contained in:
parent
22f36c0e68
commit
a182f55b0e
@ -150,14 +150,14 @@ function vhost_run() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
local cmd="$vhost_app -r $vhost_dir/rpc.sock $vhost_args"
|
||||
local cmd="$vhost_app -r $vhost_dir/rpc.sock -S $vhost_dir $vhost_args"
|
||||
|
||||
notice "Loging to: $vhost_log_file"
|
||||
notice "Socket: $vhost_socket"
|
||||
notice "Command: $cmd"
|
||||
|
||||
timing_enter vhost_start
|
||||
cd $vhost_dir
|
||||
|
||||
$cmd &
|
||||
vhost_pid=$!
|
||||
echo $vhost_pid > $vhost_pid_file
|
||||
@ -170,6 +170,7 @@ function vhost_run() {
|
||||
fi
|
||||
|
||||
notice "vhost started - pid=$vhost_pid"
|
||||
|
||||
timing_exit vhost_start
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user