test/vhost: fix typo and increase the sleep time

Fix the nightly vhost readonly test case issue
in physical machine.

Change-Id: Ie0799f06268bcef4a230b162bc70266ce4aae8cd
Signed-off-by: Chen Wang <chenx.wang@intel.com>
Reviewed-on: https://review.gerrithub.io/395014
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Chen Wang 2018-01-17 10:32:46 +08:00 committed by Jim Harris
parent 10525c9366
commit 8fdea55ef2

View File

@ -14,7 +14,7 @@ x=""
function usage()
{
[[ ! -z $2 ]] && ( echo "$2"; echo ""; )
echo "Shortcut script for automated readonly test fo vhost-block"
echo "Shortcut script for automated readonly test for vhost-block"
echo "For test details check test_plan.md"
echo
echo "Usage: $(basename $1) [OPTIONS]"
@ -90,12 +90,12 @@ function blk_ro_tc1()
vm_run $vm_no
vm_wait_for_boot 600 $vm_no
notice "Prepearing partition and file on guest VM"
notice "Preparing partition and file on guest VM"
vm_ssh $vm_no "bash -s" < $BASE_DIR/disabled_readonly_vm.sh
sleep 1
vm_shutdown_all
#Create readonly controller and test readonly featchure
#Create readonly controller and test readonly feature
notice "Removing controller and creating new one with readonly flag"
$rpc_py remove_vhost_controller $vhost_blk_name
$rpc_py construct_vhost_blk_controller -r $vhost_blk_name $disk_name
@ -104,7 +104,7 @@ function blk_ro_tc1()
vm_wait_for_boot 600 $vm_no
notice "Testing readonly feature on guest VM"
vm_ssh $vm_no "bash -s" < $BASE_DIR/enabled_readonly_vm.sh
sleep 1
sleep 3
vm_shutdown_all
#Delete file from disk and delete partition
@ -114,7 +114,7 @@ function blk_ro_tc1()
vm_run $vm_no
vm_wait_for_boot 600 $vm_no
notice "removing partition and file from test disk on guest VM"
notice "Removing partition and file from test disk on guest VM"
vm_ssh $vm_no "bash -s" < $BASE_DIR/delete_partition_vm.sh
sleep 1