oe-selftest: Add track_for_cleanup method to be used in cleanup tasks
authorCorneliu Stoicescu <corneliux.stoicescu@intel.com>
Wed, 11 Dec 2013 16:09:40 +0000 (17:09 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 Dec 2013 09:11:17 +0000 (09:11 +0000)
commit0ef0bee8e0f05444a75ad1a88726ba89ad80616d
tree7599425ca689e117bea30329bf0a11b962c20de8
parent6738232a972b07bcc922e6b17541b3acbd265668
oe-selftest: Add track_for_cleanup method to be used in cleanup tasks

Added a track_for_cleanup(path) method that removes the given path in the
tearDown method. This mechanism can be used to make sure a file or directory
we created will be removed at the end of a test, regardless of what happens.

(From OE-Core rev: 358415cf604089cc2dab547e231d062b9dc068ee)

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/base.py