]> code.ossystems Code Review - openembedded-core.git/commit
testsdkext/devtool: initialize the test component's git repo
authorAlexander Kanavin <alex.kanavin@gmail.com>
Tue, 5 May 2020 13:01:14 +0000 (15:01 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 May 2020 11:11:03 +0000 (12:11 +0100)
commita5b21af4884c322be173b045ec2fad57ef76e98e
treecbc771dc4e21a7d573e782acea6fb5c14c2b5865
parent520cb26ac248994a88f161b6ad92211ffcb93d9b
testsdkext/devtool: initialize the test component's git repo

Devtool is relying on externalsrc class, which, in order to determine
if a rebuild is needed, relies on git to checksum files (if the
component tree is a git repo), or sets a flag to always rebuild if
the component tree is not a git repo.

This is problematic in testsdkext scenario, where the test component
is inside a build directory, which itself is inside the poky repo
checkout, and listed in .gitignore. What happens is that git walks
up the tree and uses the index of the poky repo. This works okay
with older versions of git, but git 2.26 complains that we're inside
a directory that is ignored, and returns an error.

To fix the issue, the git repository is initialized directly in the
component directory, just prior to running the tests.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/sdkext/cases/devtool.py