tests: ensure that image validation will not cure the corruption
commitf025a99e614f730b3d8902158f4c6c2d947eb855
authorDenis V. Lunev <den@openvz.org>
Mon, 18 Sep 2023 18:00:47 +0000 (18 20:00 +0200)
committerDenis V. Lunev <den@openvz.org>
Thu, 21 Sep 2023 06:46:55 +0000 (21 08:46 +0200)
treef23382521ec50071a0886a48fb33f24e03a29329
parenta398275e88103c0c0a7f3784b30683f3bd3f640b
tests: ensure that image validation will not cure the corruption

Since
    commit cfce1091d55322789582480798a891cbaf66924e
    Author: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
    Date:   Tue Jul 18 12:44:29 2023 +0200
    parallels: Image repairing in parallels_open()
there is a potential pit fall with calling
    qemu-io -c "read"
The image is opened in read-write mode and thus could be potentially
repaired. This could ruin testing process.

The patch forces read-only opening for reads. In that case repairing
is impossible.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
tests/qemu-iotests/tests/parallels-checks