Check for "Checksum mismatch" and "BUG" messages during test_heal

hotfix-1.0.0
Vitaliy Filippov 2023-06-17 01:18:34 +03:00
parent 3c8e4c6b72
commit 819cb70cdd
1 changed files with 5 additions and 3 deletions

View File

@ -56,10 +56,12 @@ qemu-img convert -S 4096 -p \
-f raw "vitastor:etcd_host=127.0.0.1\:$ETCD_PORT/v3:image=testimg" \
-O raw ./testdata/read.bin
diff ./testdata/read.bin ./testdata/mirror.bin
if ! diff -q ./testdata/read.bin ./testdata/mirror.bin; then
format_error Data lost during self-heal
fi
if grep -q 'Checksum mismatch' ./testdata/osd*.log; then
format_error Checksum mismatches detected during test
if grep -qP 'Checksum mismatch|BUG' ./testdata/osd*.log; then
format_error Checksum mismatches or BUGs detected during test
fi
format_green OK