All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lucas Meneghel Rodrigues <lmr@redhat.com>
To: autotest@test.kernel.org
Cc: kvm@vger.kernel.org
Subject: [PATCH 5/5] KVM test: installer: Fix bug on patch applying code
Date: Sun, 10 Apr 2011 14:10:23 -0300	[thread overview]
Message-ID: <1302455423-32116-5-git-send-email-lmr@redhat.com> (raw)
In-Reply-To: <1302455423-32116-1-git-send-email-lmr@redhat.com>

Patch command was missing <, let's fix it.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
---
 client/tests/kvm/installer.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/client/tests/kvm/installer.py b/client/tests/kvm/installer.py
index 6ccb7fa..8026d6d 100644
--- a/client/tests/kvm/installer.py
+++ b/client/tests/kvm/installer.py
@@ -680,7 +680,7 @@ class GitInstaller(SourceDirInstaller):
             for patch in user_patches:
                 utils.get_file(patch, os.path.join(self.userspace_srcdir,
                                                    os.path.basename(patch)))
-                utils.system('patch -p1 %s' % os.path.basename(patch))
+                utils.system('patch -p1 < %s' % os.path.basename(patch))
 
         if kernel_repo:
             kernel_srcdir = os.path.join(self.srcdir, "kvm")
@@ -692,7 +692,7 @@ class GitInstaller(SourceDirInstaller):
                 for patch in kernel_patches:
                     utils.get_file(patch, os.path.join(self.userspace_srcdir,
                                                        os.path.basename(patch)))
-                    utils.system('patch -p1 %s' % os.path.basename(patch))
+                    utils.system('patch -p1 < %s' % os.path.basename(patch))
         else:
             self.kernel_srcdir = None
 
@@ -706,7 +706,7 @@ class GitInstaller(SourceDirInstaller):
                 for patch in kmod_patches:
                     utils.get_file(patch, os.path.join(self.userspace_srcdir,
                                                        os.path.basename(patch)))
-                    utils.system('patch -p1 %s' % os.path.basename(patch))
+                    utils.system('patch -p1 < %s' % os.path.basename(patch))
         else:
             self.kmod_srcdir = None
 
-- 
1.7.4.2

      parent reply	other threads:[~2011-04-10 17:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-10 17:10 [PATCH 1/5] Moving test_setup.display_attributes to kvm_utils Lucas Meneghel Rodrigues
2011-04-10 17:10 ` [PATCH 2/5] KVM test: Moving enospc test setup to test code Lucas Meneghel Rodrigues
2011-04-10 17:10 ` [PATCH 3/5] KVM test: Moving unattended_install " Lucas Meneghel Rodrigues
2011-04-10 17:10 ` [PATCH 4/5] KVM test: Cleaning unused imports on test_setup Lucas Meneghel Rodrigues
2011-04-10 17:10 ` 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=1302455423-32116-5-git-send-email-lmr@redhat.com \
    --to=lmr@redhat.com \
    --cc=autotest@test.kernel.org \
    --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.