On 29.09.19 18:34, Maxim Levitsky wrote: > On Fri, 2019-09-27 at 11:42 +0200, Max Reitz wrote: >> The image end offset as reported by qemu-img check is different when >> using an external data file; we do not care about its value here, so we >> can just filter it. >> >> Signed-off-by: Max Reitz <mre...@redhat.com> >> --- >> tests/qemu-iotests/091 | 3 ++- >> tests/qemu-iotests/091.out | 1 - >> 2 files changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/tests/qemu-iotests/091 b/tests/qemu-iotests/091 >> index f4b44659ae..7536ca4607 100755 >> --- a/tests/qemu-iotests/091 >> +++ b/tests/qemu-iotests/091 >> @@ -101,7 +101,8 @@ echo "Check image pattern" >> ${QEMU_IO} -c "read -P 0x22 0 4M" "${TEST_IMG}" | _filter_testdir | >> _filter_qemu_io >> >> echo "Running 'qemu-img check -r all \$TEST_IMG'" >> -"${QEMU_IMG}" check -r all "${TEST_IMG}" 2>&1 | _filter_testdir | >> _filter_qemu >> +"${QEMU_IMG}" check -r all "${TEST_IMG}" 2>&1 | _filter_testdir | >> _filter_qemu \ >> + | sed '/Image end offset/d' > > Maybe use _filter_qemu_img_check instead? I see it actually filters this > already.
Uh, nice. Will do, thanks. Max
signature.asc
Description: OpenPGP digital signature