From 1e0ff52d0a89de8d5e521168abe32fae743af17a Mon Sep 17 00:00:00 2001 From: Anthony PERARD Date: Wed, 22 Nov 2017 18:27:05 +0000 Subject: [PATCH] Osstest/TestSupport: Handle qemu-img location on CentOS Signed-off-by: Anthony PERARD --- Osstest/TestSupport.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 40a5c5a6..c82ba965 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -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; -- 2.39.5