Commit 2ca83614 authored by David Gibson's avatar David Gibson Committed by Jon Loeliger
Browse files

Use 'trap' builtin to clean up temporaries in test scripts



Some of the test scripts create temporary files, which we remove at the
end.  Except that we usually forgot to remove them on some exit paths. To
avoid this problem in future, this modifies the scripts to use the shell's
trap 0 functionality to automatically remove the temporaries on any exit.

Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 9a50d82c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment