[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 08/19] tests/iotests: be a little more forgiving on the size t
From: |
Alex Bennée |
Subject: |
[PATCH v2 08/19] tests/iotests: be a little more forgiving on the size test |
Date: |
Thu, 13 Feb 2020 22:50:58 +0000 |
At least on ZFS this was failing as 512 was less than or equal to 512.
I suspect the reason is additional compression done by ZFS and however
qemu-img gets the actual size.
Loosen the criteria to make sure after is not bigger than before and
also dump the values in the report.
Signed-off-by: Alex Bennée <address@hidden>
---
tests/qemu-iotests/214 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/qemu-iotests/214 b/tests/qemu-iotests/214
index 3500e0c47a2..6d1324cd157 100755
--- a/tests/qemu-iotests/214
+++ b/tests/qemu-iotests/214
@@ -125,9 +125,9 @@ $QEMU_IO -c "write -P 0xcc $offset $data_size" "json:{\
sizeB=$($QEMU_IMG info --output=json "$TEST_IMG" |
sed -n '/"actual-size":/ s/[^0-9]//gp')
-if [ $sizeA -le $sizeB ]
+if [ $sizeA -lt $sizeB ]
then
- echo "Compression ERROR"
+ echo "Compression ERROR ($sizeA vs $sizeB)"
fi
$QEMU_IMG check --output=json "$TEST_IMG" |
--
2.20.1
- [PATCH v2 01/19] tests/tcg: include a skip runner for pauth3 with plugins, (continued)
- [PATCH v2 01/19] tests/tcg: include a skip runner for pauth3 with plugins, Alex Bennée, 2020/02/13
- [PATCH v2 02/19] tests/rcutorture: update usage hint, Alex Bennée, 2020/02/13
- [PATCH v2 03/19] tests/rcutorture: better document locking of stats, Alex Bennée, 2020/02/13
- [PATCH v2 05/19] travis.yml: Test the s390-ccw build, too, Alex Bennée, 2020/02/13
- [PATCH v2 06/19] travis.yml: Fix Travis YAML configuration warnings, Alex Bennée, 2020/02/13
- [PATCH v2 04/19] tests/rcutorture: mild documenting refactor of update thread, Alex Bennée, 2020/02/13
- [PATCH v2 07/19] travis.yml: single-thread build-tcg stages, Alex Bennée, 2020/02/13
- [PATCH v2 08/19] tests/iotests: be a little more forgiving on the size test,
Alex Bennée <=
- [PATCH v2 13/19] qemu/bitops.h: Add extract8 and extract16, Alex Bennée, 2020/02/13
- [PATCH v2 10/19] docs/devel: document query handle lifetimes, Alex Bennée, 2020/02/13
- [PATCH v2 11/19] plugins/core: add missing break in cb_to_tcg_flags, Alex Bennée, 2020/02/13
- [PATCH v2 09/19] tracing: only allow -trace to override -D if set, Alex Bennée, 2020/02/13
- [PATCH v2 12/19] tests/plugin: prevent uninitialized warning, Alex Bennée, 2020/02/13
- [PATCH v2 17/19] tcg: save vaddr temp for plugin usage, Alex Bennée, 2020/02/13