]> code.ossystems Code Review - openembedded-core.git/commit
buildhistory: skip tests if GitPython module is missing
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Wed, 7 Jun 2017 14:41:55 +0000 (07:41 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Jun 2017 15:00:43 +0000 (16:00 +0100)
commit186882ca62bf683b93cd7a250963921b89ba071f
tree07bc267853a578b5b93050bc489993ba202b57c8
parent49c255494c1d0704a1c8c428281c81541b05dc3e
buildhistory: skip tests if GitPython module is missing

Catching a possible exception when importing the git module,
allows us to skip test if the latter is missing on the host.
Also, import oe.buildhistory_analysis inside fuctions
because this module also needs git to work correctly.

[YOCTO #11620]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/oelib/buildhistory.py