Commit faadc1f4 authored by Luhan Wang's avatar Luhan Wang

a

parent d791660b
...@@ -9,6 +9,6 @@ if [ "$result" != "" ];then ...@@ -9,6 +9,6 @@ if [ "$result" != "" ];then
uvt-kvm destroy $VM_NAME ## if exist testing vm, then remove it uvt-kvm destroy $VM_NAME ## if exist testing vm, then remove it
fi fi
##创建一个虚拟机用于承载测试; ##创建一个虚拟机用于承载测试;
uvt-kvm create vmtest release=bionic --memory 8192 --disk 80 --cpu 4 --ssh-public-key-file ~/.ssh/id_rsa.pub #uvt-kvm create vmtest release=bionic --memory 8192 --disk 80 --cpu 4 --ssh-public-key-file ~/.ssh/id_rsa.pub
uvt-kvm wait $VM_NAME #uvt-kvm wait $VM_NAME
echo "successfully created VM, name is vmtest" echo "successfully created VM, name is vmtest"
...@@ -9,4 +9,4 @@ if [ "$result" == "" ];then ...@@ -9,4 +9,4 @@ if [ "$result" == "" ];then
fi fi
VM_IP=`sudo uvt-kvm ip ${VM_NAME}` VM_IP=`sudo uvt-kvm ip ${VM_NAME}`
ssh -T -o StrictHostKeyChecking=no ubuntu@${VM_IP} < $CURRENT_PATH/git-clone-in-vm.sh ssh -T -o StrictHostKeyChecking=no ubuntu@${VM_IP} < $CURRENT_PATH/ci-scripts/git-clone-in-vm.sh
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment