summaryrefslogtreecommitdiff
path: root/scripts/lib/devtool/export.py
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-12-03 11:47:58 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-06 10:18:50 +0000
commiteee30d799ff892443d21de4128e7d643215b0ac1 (patch)
tree9492e381220e1b689c33d545de4a2a8b2575178f /scripts/lib/devtool/export.py
parent1ec53b8d82491aeb9f49e7a78f531e98b5608f0f (diff)
downloadopenembedded-core-eee30d799ff892443d21de4128e7d643215b0ac1.tar.gz
openembedded-core-eee30d799ff892443d21de4128e7d643215b0ac1.tar.bz2
openembedded-core-eee30d799ff892443d21de4128e7d643215b0ac1.zip
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) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/export.py')
0 files changed, 0 insertions, 0 deletions