Message ID | 20221103191420.390048-3-aalbersh@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | generic/577: fix hash check and add metadata cleaning | expand |
diff --git a/tests/generic/577 b/tests/generic/577 index 98c3888f..916f3be3 100755 --- a/tests/generic/577 +++ b/tests/generic/577 @@ -121,6 +121,7 @@ if _fsv_have_hash_algorithm sha512 $fsv_file; then fi echo -e "\n# Testing empty file" +reset_fsv_file echo -n > $fsv_file _fsv_sign $fsv_file $sigfile.emptyfile --key=$keyfile --cert=$certfile | \ _filter_scratch
When fs-verity is enabled on the file, file becomes read-only. In last check, test tries to empty the file. However, fs-verity denies opening/writing to file. Remove file beforehand as in other checks. Signed-off-by: Andrey Albershteyn <aalbersh@redhat.com> --- tests/generic/577 | 1 + 1 file changed, 1 insertion(+)