mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 11:50:10 +01:00
test generators: use one common cleanup function
This commit is contained in:
@@ -40,13 +40,7 @@ function check()
|
||||
then error("Unexpected value in result json") else empty end' $TMPDIR/json_res0 || exit 5
|
||||
}
|
||||
|
||||
function cleanup()
|
||||
{
|
||||
rm -f $TMPDIR/*
|
||||
rm -fd $TMPDIR
|
||||
}
|
||||
|
||||
lib_prepare $@
|
||||
generate
|
||||
check
|
||||
cleanup
|
||||
lib_cleanup
|
||||
|
||||
Reference in New Issue
Block a user