public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Lukáš Doktor" <ldoktor@redhat.com>
To: Lucas Meneghel Rodrigues <lmr@redhat.com>
Cc: kvm@vger.kernel.org, mjenner@redhat.com
Subject: Re: [PATCH] virt.virt_env_process: Abstract screenshot production
Date: Mon, 26 Sep 2011 14:27:34 +0200	[thread overview]
Message-ID: <4E806FB6.1050301@redhat.com> (raw)
In-Reply-To: <1316820461-14259-1-git-send-email-lmr@redhat.com>

Hi,

vm.screendump() doesn't have parameter 'debug'.

So you should either add debug parameter to kvm_vm.py or remove this 
parameter (and perhaps add debug=False into kvm_vm.py).

Regards,
Lukáš


Dne 24.9.2011 01:27, Lucas Meneghel Rodrigues napsal(a):
> In order to ease work with other virtualization types,
> make virt_env_process to call vm.screendump() instead
> of vm.monitor.screendump().
>
> Signed-off-by: Lucas Meneghel Rodrigues<lmr@redhat.com>
> ---
>   client/virt/virt_env_process.py |    6 +++---
>   1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/client/virt/virt_env_process.py b/client/virt/virt_env_process.py
> index 789fa01..9999a2e 100644
> --- a/client/virt/virt_env_process.py
> +++ b/client/virt/virt_env_process.py
> @@ -110,7 +110,7 @@ def preprocess_vm(test, params, env, name):
>       scrdump_filename = os.path.join(test.debugdir, "pre_%s.ppm" % name)
>       try:
>           if vm.monitor and params.get("take_regular_screendumps") == "yes":
> -            vm.monitor.screendump(scrdump_filename, debug=False)
> +            vm.screendump(scrdump_filename, debug=False)
>       except kvm_monitor.MonitorError, e:
>           logging.warn(e)
>
> @@ -151,7 +151,7 @@ def postprocess_vm(test, params, env, name):
>       scrdump_filename = os.path.join(test.debugdir, "post_%s.ppm" % name)
>       try:
>           if vm.monitor and params.get("take_regular_screenshots") == "yes":
> -            vm.monitor.screendump(scrdump_filename, debug=False)
> +            vm.screendump(scrdump_filename, debug=False)
>       except kvm_monitor.MonitorError, e:
>           logging.warn(e)
>
> @@ -460,7 +460,7 @@ def _take_screendumps(test, params, env):
>               if not vm.is_alive():
>                   continue
>               try:
> -                vm.monitor.screendump(filename=temp_filename, debug=False)
> +                vm.screendump(filename=temp_filename, debug=False)
>               except kvm_monitor.MonitorError, e:
>                   logging.warn(e)
>                   continue


  reply	other threads:[~2011-09-26 12:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-23 23:27 [PATCH] virt.virt_env_process: Abstract screenshot production Lucas Meneghel Rodrigues
2011-09-26 12:27 ` Lukáš Doktor [this message]
2011-09-26 13:10   ` Lucas Meneghel Rodrigues
2011-09-26 13:20     ` Lukáš Doktor
2011-09-26 13:28       ` Lucas Meneghel Rodrigues

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=4E806FB6.1050301@redhat.com \
    --to=ldoktor@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=lmr@redhat.com \
    --cc=mjenner@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