xl: allow check-xl-disk-parse to run against installed xl as well as build dir
authorIan Campbell <ian.campbell@citrix.com>
Fri, 7 Oct 2011 10:05:47 +0000 (11:05 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 7 Oct 2011 10:05:47 +0000 (11:05 +0100)
commit5631ee13f8a3c27f73019fc96b80e9a4f5a87a7d
tree20b0c5c0b8cefbc7df5f5ce6e49ffbbeee5c4af4
parent93e240f0966324dee6b02d249f3e3a9e5ecf9d19
xl: allow check-xl-disk-parse to run against installed xl as well as build dir

I can't run from the current directory since my build box isn't running Xen so
if ./xl doesn't exist use the installed version on the assumption that I've
copied the script to a test host.

I think running from the build dir needs the blktap2 libraries, so update
LD_LIBRARY_PATH as appropriate.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
tools/libxl/check-xl-disk-parse