From: Alon Levy Subject: [PATCH] kvm_vm: add build/lib to LD_LIBRARY_PATH for qemu_cmd Date: Sun, 26 Jun 2011 21:55:21 +0200 Message-ID: <1309118124-8080-2-git-send-email-alevy@redhat.com> References: <1309118124-8080-1-git-send-email-alevy@redhat.com> Cc: kvm@vger.kernel.org To: autotest@test.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:9662 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754147Ab1FZTza (ORCPT ); Sun, 26 Jun 2011 15:55:30 -0400 In-Reply-To: <1309118124-8080-1-git-send-email-alevy@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: build/lib can contain libspice-server.so built from git. --- client/virt/kvm_vm.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/client/virt/kvm_vm.py b/client/virt/kvm_vm.py index 3fa4b1a..48a1fc5 100644 --- a/client/virt/kvm_vm.py +++ b/client/virt/kvm_vm.py @@ -403,6 +403,9 @@ class VM(virt_vm.BaseVM): # Set the X11 display parameter if requested if params.get("x11_display"): qemu_cmd += "DISPLAY=%s " % params.get("x11_display") + # Update LD_LIBRARY_PATH for built libraries (libspice-server) + qemu_cmd += "LD_LIBRARY_PATH=%s " % ( + os.path.abspath(os.path.join(self.root_dir, 'build/lib'))) # Add the qemu binary qemu_cmd += qemu_binary # Add the VM's name -- 1.7.5.4