[Qemu-devel] [PATCH 18/17] iotests: Make 059 pass on machines with little RAM

Max Reitz posted 17 patches 8 years, 2 months ago
[Qemu-devel] [PATCH 18/17] iotests: Make 059 pass on machines with little RAM
Posted by Max Reitz 8 years, 2 months ago
Signed-off-by: Max Reitz <mreitz@redhat.com>
---
Based-on: <20171123020832.8165-1-mreitz@redhat.com>

(Depends on patch 12 of this series; I'll merge both if I have to
 respin.)
---
 tests/qemu-iotests/059 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/qemu-iotests/059 b/tests/qemu-iotests/059
index a1c34eeb7c..40f89eae18 100755
--- a/tests/qemu-iotests/059
+++ b/tests/qemu-iotests/059
@@ -152,7 +152,9 @@ done
 echo
 echo "=== Testing afl image with a very large capacity ==="
 _use_sample_img afl9.vmdk.bz2
-_img_info
+# The sed makes this test pass on machines with little RAM
+# (and also with 32 bit builds)
+_img_info | sed -e 's/Cannot allocate memory/Invalid argument/'
 _cleanup_test_img
 
 # success, all done
-- 
2.13.6


Re: [Qemu-devel] [PATCH 18/17] iotests: Make 059 pass on machines with little RAM
Posted by Fam Zheng 8 years, 2 months ago
On Wed, 11/29 20:24, Max Reitz wrote:
> Signed-off-by: Max Reitz <mreitz@redhat.com>
> ---
> Based-on: <20171123020832.8165-1-mreitz@redhat.com>
> 
> (Depends on patch 12 of this series; I'll merge both if I have to
>  respin.)
> ---
>  tests/qemu-iotests/059 | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/qemu-iotests/059 b/tests/qemu-iotests/059
> index a1c34eeb7c..40f89eae18 100755
> --- a/tests/qemu-iotests/059
> +++ b/tests/qemu-iotests/059
> @@ -152,7 +152,9 @@ done
>  echo
>  echo "=== Testing afl image with a very large capacity ==="
>  _use_sample_img afl9.vmdk.bz2
> -_img_info
> +# The sed makes this test pass on machines with little RAM
> +# (and also with 32 bit builds)
> +_img_info | sed -e 's/Cannot allocate memory/Invalid argument/'
>  _cleanup_test_img
>  
>  # success, all done
> -- 
> 2.13.6
> 


Reviewed-by: Fam Zheng <famz@redhat.com>