]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
Osstest/TestSupport: Handle qemu-img location on CentOS
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 22 Nov 2017 18:27:05 +0000 (18:27 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Mon, 18 Dec 2017 16:47:18 +0000 (16:47 +0000)
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Osstest/TestSupport.pm

index 40a5c5a68f306a37a8dfe9190d1ee368f0eeba29..c82ba965a5bd5adfc9d840243a791d5d4aac05ea 100644 (file)
@@ -1949,8 +1949,8 @@ sub make_qcow2 ($$$) {
     my ($ho, $gho, $disk_mb) = @_;
     # upstream qemu's version. Seems preferable to qemu-xen-img from qemu-trad.
     my $qemu_img;
-    foreach (qw(/usr/local /usr)) {
-       my $try = "$_/lib/xen/bin/qemu-img";
+    foreach (qw(/usr/local/lib /usr/lib /usr/lib64)) {
+       my $try = "$_/xen/bin/qemu-img";
         if (target_file_exists($ho, $try)) {
             $qemu_img=$try;
             last;