On 08/17/2011 11:23 PM, Dale Curtis wrote:
> We had a series of tests which needed finer grained control over down
> timeout and down warning.
Ok, good, applied, thanks!

http://autotest.kernel.org/changeset/5532

> Signed-off-by: Dale Curtis<[email protected]>
> ---
>   client/common_lib/hosts/base_classes.py |    6 ++++--
>   1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/client/common_lib/hosts/base_classes.py 
> b/client/common_lib/hosts/base_classes.py
> index 0f3a840..68cabe8 100644
> --- a/client/common_lib/hosts/base_classes.py
> +++ b/client/common_lib/hosts/base_classes.py
> @@ -192,11 +192,13 @@ class Host(object):
>
>
>       def wait_for_restart(self, timeout=DEFAULT_REBOOT_TIMEOUT,
> +                         down_timeout=WAIT_DOWN_REBOOT_TIMEOUT,
> +                         down_warning=WAIT_DOWN_REBOOT_WARNING,
>                            log_failure=True, old_boot_id=None, **dargs):
>           """ Wait for the host to come back from a reboot. This is a generic
>           implementation based entirely on wait_up and wait_down. """
> -        if not self.wait_down(timeout=self.WAIT_DOWN_REBOOT_TIMEOUT,
> -                              warning_timer=self.WAIT_DOWN_REBOOT_WARNING,
> +        if not self.wait_down(timeout=down_timeout,
> +                              warning_timer=down_warning,
>                                 old_boot_id=old_boot_id):
>               if log_failure:
>                   self.record("ABORT", None, "reboot.verify", "shut down 
> failed")

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to