commit | 2ca83614e78f32e68202100e94668b0bb62f1ba6 | [log] [tgz] |
---|---|---|
author | David Gibson <david@gibson.dropbear.id.au> | Fri Feb 03 05:12:04 2012 |
committer | Jon Loeliger <jdl@jdl.com> | Fri Feb 03 14:36:35 2012 |
tree | cc9b11f5ef2b92079618df3040325b929130e173 | |
parent | 9a50d82c4e3a44ca004ada288f7c37004da0b0cc [diff] |
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: David Gibson <david@gibson.dropbear.id.au>