From: Richard W.M. Jones Date: Mon, 17 Oct 2016 10:29:44 +0000 (+0100) Subject: RHEL 6: Don't print an error on qemu-img test expected failure. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=44fb810ed7b4a33dc49caac77a0091c30ff95d4e;p=import-to-ovirt.git RHEL 6: Don't print an error on qemu-img test expected failure. Fixes commit 001e24ec7af047cdf3c5ccb535468c78a89dcdba. --- diff --git a/import-to-ovirt.pl b/import-to-ovirt.pl index abb557b..2828172 100755 --- a/import-to-ovirt.pl +++ b/import-to-ovirt.pl @@ -236,7 +236,7 @@ system ("qemu-img create -f qcow2 .test.qcow2 10M >/dev/null") == 0 # Does this version of qemu-img support compat=0.10? RHEL 6 # did NOT support it. my $qemu_img_supports_compat = 0; -system ("qemu-img create -f qcow2 -o compat=0.10 .test.qcow2 10M >/dev/null") == 0 +system ("qemu-img create -f qcow2 -o compat=0.10 .test.qcow2 10M >/dev/null 2>&1") == 0 and $qemu_img_supports_compat = 1; unlink ".test.qcow2";