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:
parent
10525c9366
commit
8fdea55ef2
@ -14,7 +14,7 @@ x=""
|
|||||||
function usage()
|
function usage()
|
||||||
{
|
{
|
||||||
[[ ! -z $2 ]] && ( echo "$2"; echo ""; )
|
[[ ! -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 "For test details check test_plan.md"
|
||||||
echo
|
echo
|
||||||
echo "Usage: $(basename $1) [OPTIONS]"
|
echo "Usage: $(basename $1) [OPTIONS]"
|
||||||
@ -90,12 +90,12 @@ function blk_ro_tc1()
|
|||||||
|
|
||||||
vm_run $vm_no
|
vm_run $vm_no
|
||||||
vm_wait_for_boot 600 $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
|
vm_ssh $vm_no "bash -s" < $BASE_DIR/disabled_readonly_vm.sh
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
vm_shutdown_all
|
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"
|
notice "Removing controller and creating new one with readonly flag"
|
||||||
$rpc_py remove_vhost_controller $vhost_blk_name
|
$rpc_py remove_vhost_controller $vhost_blk_name
|
||||||
$rpc_py construct_vhost_blk_controller -r $vhost_blk_name $disk_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
|
vm_wait_for_boot 600 $vm_no
|
||||||
notice "Testing readonly feature on guest VM"
|
notice "Testing readonly feature on guest VM"
|
||||||
vm_ssh $vm_no "bash -s" < $BASE_DIR/enabled_readonly_vm.sh
|
vm_ssh $vm_no "bash -s" < $BASE_DIR/enabled_readonly_vm.sh
|
||||||
sleep 1
|
sleep 3
|
||||||
|
|
||||||
vm_shutdown_all
|
vm_shutdown_all
|
||||||
#Delete file from disk and delete partition
|
#Delete file from disk and delete partition
|
||||||
@ -114,7 +114,7 @@ function blk_ro_tc1()
|
|||||||
|
|
||||||
vm_run $vm_no
|
vm_run $vm_no
|
||||||
vm_wait_for_boot 600 $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
|
vm_ssh $vm_no "bash -s" < $BASE_DIR/delete_partition_vm.sh
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user