Commit 8fdea55e authored by Chen Wang's avatar Chen Wang Committed by Jim Harris
Browse files

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: default avatarChen Wang <chenx.wang@intel.com>
Reviewed-on: https://review.gerrithub.io/395014


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 10525c93
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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