commit | 2ca83614e78f32e68202100e94668b0bb62f1ba6 | [log] [tgz] |
---|---|---|
author | David Gibson <[email protected]> | Fri Feb 03 16:12:04 2012 +1100 |
committer | Jon Loeliger <[email protected]> | Fri Feb 03 08:36:35 2012 -0600 |
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 <[email protected]>