diff mbox

[5/5] KVM test: installer: Fix bug on patch applying code

Message ID 1302455423-32116-5-git-send-email-lmr@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lucas Meneghel Rodrigues April 10, 2011, 5:10 p.m. UTC
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 mbox

Patch

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