public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Lucas Meneghel Rodrigues <lmr@redhat.com>
To: "Jiří Župka" <jzupka@redhat.com>
Cc: kvm-autotest@redhat.com, kvm@vger.kernel.org,
	autotest@test.kernel.org, ldoktor@redhat.com, akong@redhat.com
Subject: Re: [PATCH] Correcting timeout interruption of virtio_console test.
Date: Mon, 06 Dec 2010 21:13:38 -0200	[thread overview]
Message-ID: <1291677218.2585.14.camel@freedom> (raw)
In-Reply-To: <1291381809-16450-1-git-send-email-jzupka@redhat.com>

On Fri, 2010-12-03 at 14:10 +0100, Jiří Župka wrote:
> Catch new exception from kvm_suprocess to avoid killing of tests.

Hi guys, I did some rebasing in all your patches to virtio_console and
re-sent to the mailing list. All of them are applied, thank you very
much for your work on this!

Lucas

> ---
>  client/tests/kvm/tests/virtio_console.py |   10 +++++++---
>  1 files changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/client/tests/kvm/tests/virtio_console.py b/client/tests/kvm/tests/virtio_console.py
> index d8d2143..d083783 100644
> --- a/client/tests/kvm/tests/virtio_console.py
> +++ b/client/tests/kvm/tests/virtio_console.py
> @@ -468,9 +468,13 @@ def run_virtio_console(test, params, env):
>          logging.debug("Executing '%s' on virtio_guest.py loop, vm: %s," +
>                        "timeout: %s", command, vm[0].name, timeout)
>          vm[1].sendline(command)
> -        (match, data) = vm[1].read_until_last_line_matches(["PASS:",
> -                                                    "FAIL:[Failed to execute]"],
> -                                                    timeout)
> +        try:
> +            (match, data) = vm[1].read_until_last_line_matches(["PASS:",
> +                                                                "FAIL:"],
> +                                                               timeout)
> +        except (kvm_subprocess.ExpectTimeoutError):
> +            match = None
> +            data = None
>          return (match, data)
>  
> 



      reply	other threads:[~2010-12-06 23:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-03 13:10 [PATCH] Correcting timeout interruption of virtio_console test Jiří Župka
2010-12-06 23:13 ` Lucas Meneghel Rodrigues [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1291677218.2585.14.camel@freedom \
    --to=lmr@redhat.com \
    --cc=akong@redhat.com \
    --cc=autotest@test.kernel.org \
    --cc=jzupka@redhat.com \
    --cc=kvm-autotest@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=ldoktor@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox