On Sat, 2012-06-23 at 10:41 -0400, Amos Kong wrote:
> ----- Original Message -----
> > 
> > Signed-off-by: Qingtang Zhou <qz...@redhat.com>
> > Signed-off-by: Amos Kong <ak...@redhat.com>
> > Signed-off-by: Feng Yang <fy...@redhat.com>
> > ---
> >  client/virt/virt_test_utils.py |   32
> >  ++++++++++++++++++++++++++++++++
> >  1 files changed, 32 insertions(+), 0 deletions(-)
> > 
> > diff --git a/client/virt/virt_test_utils.py
> > b/client/virt/virt_test_utils.py
> > index efcabbb..bc7a759 100644
> > --- a/client/virt/virt_test_utils.py
> > +++ b/client/virt/virt_test_utils.py
> > @@ -148,6 +148,38 @@ def reboot(vm, session, method="shell",
> > sleep_before_reset=10, nic_index=0,
> >      return session
> >  
> >  
> > +def update_boot_option(vm, args_removed=None, args_added=None,
> > +                       need_reboot=True):
> > +    """
> > +    Update guest default kernel option.
> > +    """
> > +    if re.findall("win", vm.params.get("guest_name"), re.I):
> > +        # this function is only for linux, if we need to change
> 
> Better to decide by 'os_type' in guest-os.cfg.sample:
> 
>     # Windows section
>     - @Windows:
>         os_type = windows

Yep, os_type is a fairly new config key, that went in by the time we
started to support libvirt. We should update this ASAP.

_______________________________________________
Autotest mailing list
Autotest@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to