RHEL 6: Don't print an error on qemu-img test expected failure.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 17 Oct 2016 10:29:44 +0000 (11:29 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 17 Oct 2016 10:29:44 +0000 (11:29 +0100)
Fixes commit 001e24ec7af047cdf3c5ccb535468c78a89dcdba.

import-to-ovirt.pl

index abb557b..2828172 100755 (executable)
@@ -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";