This patch includes few changes like retrieving the parameters in
qemu_migrate_benchmark.bash and providing the results for live migration
testcase in yardstick
Change-Id: Ie7f85973b3043ddc3880e06aae0d311e56ac15a3
Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
         cmd_args = " %s %s %s %s %s %s" %\
                    (smp, qmp_sock_src, qmp_sock_dst, incoming_ip,
                     migrate_to_port, max_down_time)
-        cmd = "bash migrate_benchmark.sh %s" % (cmd_args)
+        cmd = "bash qemu_migrate_benchmark.sh %s" % (cmd_args)
         LOG.debug("Executing command: %s", cmd)
         status, stdout, stderr = self.host.execute(cmd)
         if status:
 
 # Commandline arguments
 
 src=$2
+dst=$3
 dst_ip=$4
 migrate_to_port=$5
 max_down_time=$6
 
 do_migrate()
 {
-#       local src=`echo $OPTIONS | cut -d ':' -f 2 | cut -d ',' -f 1`
         echo "info status" | nc -U $src
         # with no speed limit
         echo "migrate_set_speed 0" |nc -U $src
         # print detail information
         echo "info migrate" | nc -U $src
         echo "quit" | nc -U $src
+        echo "quit" | nc -u $dst
         sleep 5
+        echo "Migration executed successfully"
 
 } > $OUTPUT_FILE
 
 main()
 {
     do_migrate
+    output_qemu
+    output_json
 }
 main