From 44fb810ed7b4a33dc49caac77a0091c30ff95d4e Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 17 Oct 2016 11:29:44 +0100 Subject: [PATCH] RHEL 6: Don't print an error on qemu-img test expected failure. Fixes commit 001e24ec7af047cdf3c5ccb535468c78a89dcdba. --- import-to-ovirt.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 1.8.3.1