KVM Test: Make remote_scp() more robust

1. In remote_scp(), if SCP connetion stalled for some reason, following
code will be ran.
        else:  # match == None

            logging.debug("Timeout elapsed or process terminated")
            status = sub.get_status()
            sub.close()
            return status == 0
At this moment, kvm_subprocess server is still running which means
lock_server_running_filename is still locked. But sub.get_status()
tries to lock it again.  If kvm_subprocess server keeps running,
a deadlock will happen. This patch will fix this issue by enable
timeout parameter. Update default value for timeout to 600, it should
be enough.

2. Add "-v" in scp command to catch more infomation. Also add "Exit status"
and "stalled" match prompt in remote_scp().

Signed-off-by: Feng Yang <fyang@redhat.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4483 592f7852-d20e-0410-864c-8624ca9c26a4
2 files changed