wait_for_login() related update

Redhat ID: 1080834



On 09/18/2014 02:39 PM, Yiqiao Pu wrote:
>
> In virttest/virt_vm.py:
>
> >                      try:
> > -                        utils_net.restart_guest_network(session)
> > +                        logging.debug("Attempting to restart guest network")
> > +                        utils_net.restart_guest_network(session, os_type=os_type)
> >                      except Exception:
> >                          pass
> >                  return session
>
> Hi @FengYang <https://github.com/FengYang> here the session is the 
> serial session but not a ssh session. I am thinking that maybe it is 
> better to return a ssh session here if restart_network set to True,
>
Hi @ypu,

Thanks for your comments.

This is in wait_for_serial_login() function.  So I think we'd better 
return serial session.  In wait_for_login() function, it will try to 
return ssh session after restart network.

Thanks


> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/autotest/virt-test/pull/1764/files#r17711277>.
>