]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
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>
Thu, 12 Jul 2018 15:49:19 +0000 (16:49 +0100)
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Osstest/TestSupport.pm

index 2839ba407edeb150cac85a13dbcc637833094511..c480b42948e3006cde29480f0f4054a84621cf72 100644 (file)
@@ -1992,8 +1992,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;