mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 19:30:04 +01:00
test generators: use one common cleanup function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user