From 858df2692ee8a7a501da7364f1d9de5cf4158a36 Mon Sep 17 00:00:00 2001 From: richael zhuang Date: Tue, 7 Jan 2020 10:28:37 +0800 Subject: [PATCH] test: fix error when running vhost_test.sh Met error "touch: cannot touch './timing.txt': No such file or directory" when running vhost_test.sh. For the working directory is removed in "vhost_kill 0", And then "timing_exit clean_vhost" will fail to touch timing.txt in the removed directory. Signed-off-by: richael zhuang Change-Id: I2d0818b1228ebfd6767c258a0f4c1fbbfc728016 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/479482 Tested-by: SPDK CI Jenkins Reviewed-by: Shuhei Matsumoto Reviewed-by: Tomasz Zawadzki --- test/vhost/vhost_boot/vhost_boot.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/vhost/vhost_boot/vhost_boot.sh b/test/vhost/vhost_boot/vhost_boot.sh index d2c97c89b..51882c008 100755 --- a/test/vhost/vhost_boot/vhost_boot.sh +++ b/test/vhost/vhost_boot/vhost_boot.sh @@ -118,7 +118,8 @@ $rpc_py vhost_scsi_controller_remove_target naa.vhost_vm.$vm_no 0 $rpc_py vhost_delete_controller naa.vhost_vm.$vm_no $rpc_py bdev_lvol_delete $lvb_u $rpc_py bdev_lvol_delete_lvstore -u $lvs_u -vhost_kill 0 timing_exit clean_vhost +vhost_kill 0 + vhosttestfini