test generators: use one common cleanup function

This commit is contained in:
Milan Broz
2022-04-09 16:57:36 +02:00
parent c9ead0482d
commit e97238fb6d
77 changed files with 82 additions and 532 deletions

View File

@@ -63,13 +63,7 @@ function check()
test ${#json_str_res0} -eq $((LUKS2_JSON_SIZE*512)) || exit 2
}
function cleanup()
{
rm -f $TMPDIR/*
rm -fd $TMPDIR
}
lib_prepare $@
generate
check
cleanup
lib_cleanup