]> code.ossystems Code Review - openembedded-core.git/commit
oe-selftest: optimize code in _sstatetests_noauto.py module
authorCorneliu Stoicescu <corneliux.stoicescu@intel.com>
Thu, 6 Mar 2014 16:35:55 +0000 (18:35 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Mar 2014 14:55:27 +0000 (14:55 +0000)
commitd002bcf7f80fd9652d3f310957c99bd1e6c8b3a1
treeaa7134112e714955122408fb636daef0442c12b4
parent2a9a14bf400fe0c263c58aa85b02aba7311b1328
oe-selftest: optimize code in _sstatetests_noauto.py module

1) Some of the checks made when creating new directories are unnecessary beacause
the test will fail anyway if os.mkdir() fails, with the appropriate error message.

Removing this code.

2) Moved the adding to tracked paths for deletion of temporary build directories
and sstate-cache directories to after they are created. This makes more sense
and prevents deletion of these directories if they allready exist and may contain
useful data.

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