From patchwork Sun Jun 26 20:04:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 919562 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5QK7b1n025364 for ; Sun, 26 Jun 2011 20:08:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754513Ab1FZUFW (ORCPT ); Sun, 26 Jun 2011 16:05:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38134 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754797Ab1FZUEq (ORCPT ); Sun, 26 Jun 2011 16:04:46 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p5QK4jCG030077 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 26 Jun 2011 16:04:45 -0400 Received: from bow.redhat.com (vpn-10-228.rdu.redhat.com [10.11.10.228]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p5QK4fKI024319; Sun, 26 Jun 2011 16:04:44 -0400 From: Alon Levy To: autotest@test.kernel.org Cc: kvm@vger.kernel.org Subject: [PATCH] kvm_vm: add build/lib to LD_LIBRARY_PATH for qemu_cmd Date: Sun, 26 Jun 2011 22:04:35 +0200 Message-Id: <1309118678-8327-2-git-send-email-alevy@redhat.com> In-Reply-To: <1309118678-8327-1-git-send-email-alevy@redhat.com> References: <1309118678-8327-1-git-send-email-alevy@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Sun, 26 Jun 2011 20:08:15 +0000 (UTC) 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