iotests: Make 059 pass on machines with little RAM
authorMax Reitz <mreitz@redhat.com>
Wed, 29 Nov 2017 19:24:11 +0000 (20:24 +0100)
committerMax Reitz <mreitz@redhat.com>
Tue, 23 Jan 2018 11:34:43 +0000 (12:34 +0100)
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20171129192411.6637-1-mreitz@redhat.com
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/059

index a1c34eeb7c7640a622eb2302d79fda8496a8e78c..40f89eae18b879dbfa683b32081efe1d793ed5d0 100755 (executable)
@@ -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