From a182f55b0e362be67c7d5e614f950772ea149c7f Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Wed, 14 Jul 2021 10:15:24 +0200 Subject: [PATCH] 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 Change-Id: I95383def6cd1d1fc6a7760f0f7f468b87cbd8923 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8777 Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins Reviewed-by: Changpeng Liu Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris Reviewed-by: Michal Berger Reviewed-by: Maciej Wawryk Reviewed-by: Konrad Sztyber --- test/vhost/common.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/vhost/common.sh b/test/vhost/common.sh index 180c89340..6295caa95 100644 --- a/test/vhost/common.sh +++ b/test/vhost/common.sh @@ -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 }