diff options
author | Ross Burton <ross.burton@intel.com> | 2018-12-03 11:47:58 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-05 12:28:54 +0000 |
commit | 68b4723e6fb11d171869185bccf28f32f6284c18 (patch) | |
tree | 1c8ff6e0f5f4e687e29ff81a7937e770f40842fb /meta/recipes-bsp/setserial | |
parent | 24000d1fdba2684202e15371f80bb385722c9d91 (diff) | |
download | openembedded-core-contrib-68b4723e6fb11d171869185bccf28f32f6284c18.tar.gz |
oeqa/oelib/path: don't leak temporary directories
setUp() is used to populate a directory of temporary files, and deleted in
__del__. However setUp() is called once *per test* so __del__ would only be
able to remove the last directory created.
Fix the code by using the natural counterpart to setUp, tearDown(), to clean up.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/setserial')
0 files changed, 0 insertions, 0 deletions