All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lucas Meneghel Rodrigues <lmr@redhat.com>
To: fyang@redhat.com
Cc: autotest@test.kernel.org, kvm@vger.kernel.org
Subject: Re: [Autotest] [PATCH] KVM Test: Switch current working folder in unattended_install.py.
Date: Fri, 20 May 2011 15:59:04 -0300	[thread overview]
Message-ID: <1305917946.15658.12.camel@freedom> (raw)
In-Reply-To: <1305800662-21241-1-git-send-email-fyang@redhat.com>

On Thu, 2011-05-19 at 18:24 +0800, fyang@redhat.com wrote:
> From: Feng Yang <fyang@redhat.com>
> 
> Current working folder for
>     unattended_install_config = UnattendedInstallConfig(test, params)
>     unattended_install_config.setup()
> must be kvm folder.

This is not needed at all. What might be going on your setup is some
incorrectly set or absent path that might be messing up with relative
paths during your install.

Please provide some more info so we can fix your problem properly.
Meanwhile I'm marking this as 'rejected'.

Thanks!

> Signed-off-by: Feng Yang <fyang@redhat.com>
> ---
>  client/tests/kvm/tests/unattended_install.py |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/client/tests/kvm/tests/unattended_install.py b/client/tests/kvm/tests/unattended_install.py
> index 50a8c7a..eee1761 100644
> --- a/client/tests/kvm/tests/unattended_install.py
> +++ b/client/tests/kvm/tests/unattended_install.py
> @@ -506,8 +506,11 @@ def run_unattended_install(test, params, env):
>      @param params: Dictionary with the test parameters.
>      @param env: Dictionary with test environment.
>      """
> +    cur_folder = os.getcwd()
> +    os.chdir(test.bindir)
>      unattended_install_config = UnattendedInstallConfig(test, params)
>      unattended_install_config.setup()
> +    os.chdir(cur_folder)
>      vm = env.get_vm(params["main_vm"])
>      vm.create()
>  



  reply	other threads:[~2011-05-20 18:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-19 10:24 [PATCH] KVM Test: Switch current working folder in unattended_install.py fyang
2011-05-20 18:59 ` Lucas Meneghel Rodrigues [this message]
2011-05-23  2:25   ` Feng Yang

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=1305917946.15658.12.camel@freedom \
    --to=lmr@redhat.com \
    --cc=autotest@test.kernel.org \
    --cc=fyang@redhat.com \
    --cc=kvm@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.