]> code.ossystems Code Review - openembedded-core.git/commit
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:09:35 +0000 (09:09 +0000)
commit358415cf604089cc2dab547e231d062b9dc068ee
tree6105e52a661272c0f4769d99dbd850075cdb6f9e
parentb59466ec341e6596b7ade7f1813b25e454b11a32
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.

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