On Wed, Nov 02, 2022 at 05:51:34PM +0100, Andrey Albershteyn wrote: > 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@xxxxxxxxxx> > --- > tests/generic/577 | 1 + > 1 file changed, 1 insertion(+) > > 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 Thank you for reporting this. How did you notice this? This test actually is currently passing, because there is another test bug that makes _fsv_have_hash_algorithm always return false here. That really needs to be fixed first, as otherwise your fix doesn't really do anything. - Eric