qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] qemu migrate with expect script


From: lei yang
Subject: [Qemu-discuss] qemu migrate with expect script
Date: Tue, 26 Nov 2013 09:17:31 +0800

Hi

I'm try to automate my migrate with expect,but it doesn't expect as it

I want automate below steps

(qemu) migrate -d tcp:192.168.122.1:4444
(qemu) info migrate
capabilities: xbzrle: off
Migration status: completed
total time: 4425 milliseconds
downtime: 3 milliseconds
transferred ram: 130338 kbytes
remaining ram: 0 kbytes
total ram: 1057152 kbytes
duplicate: 232613 pages
normal: 32011 pages
normal bytes: 128044 kbytes
(qemu)

==============================================================================================

I use below expect scripts fragment to automate this testing

Code:

.......
expect {
        "*qemu*" {send "migrate -d tcp:192.168.122.1:4444\r\n" }
        timeout {  exit 2 }
}
sleep 10
puts "run info migrate"
expect {
    "(qemu)" {send "\ninfo migrate\r\n"}
#        timeout {  exit 2 }
}
........


I can't get the below output log with expect scripts, which print from the cmd "info migrate", I'm sure migrate -d tcp:192.168.122.1:4444 has executed, seem "info migrate" doesn't execute

========================================================================================================================
capabilities: xbzrle: off
Migration status: completed
total time: 4425 milliseconds
downtime: 3 milliseconds
transferred ram: 130338 kbytes
remaining ram: 0 kbytes
total ram: 1057152 kbytes
duplicate: 232613 pages
normal: 32011 pages
normal bytes: 128044 kbytes

reply via email to

[Prev in Thread] Current Thread [Next in Thread]