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-16 14:31:33 +0000 |
commit | 72d7b5b5d409e9de83a6428d07e12d2ee0e2f810 (patch) | |
tree | 3de8b824983d958af535f774a62847682d7bd2f0 /meta/lib/oeqa/selftest/cases/oelib/license.py | |
parent | 3c27f3b3a76e3cb11faf119a4edb3c96e9e7e607 (diff) | |
download | poky-72d7b5b5d409e9de83a6428d07e12d2ee0e2f810.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.
(From OE-Core rev: 68b4723e6fb11d171869185bccf28f32f6284c18)
(From OE-Core rev: eee30d799ff892443d21de4128e7d643215b0ac1)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/oelib/license.py')
0 files changed, 0 insertions, 0 deletions