mirror of
https://git.yoctoproject.org/poky
synced 2026-03-09 16:59:40 +01:00
By naming this test class git.py, any attempt to import GitPython (as needed by oelib.buildhistory) failed. As this class exercises the intercepts, rename it to intercept.py. (From OE-Core rev: d557cbbf86767bc2ebf2beb3d70af3b3ca5e0529) (From OE-Core rev: b4ec76c699f8d20de7d6d2b51b062d8ec41e2486) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
16 lines
668 B
Python
16 lines
668 B
Python
from oeqa.selftest.case import OESelftestTestCase
|
|
from oeqa.utils.commands import bitbake
|
|
|
|
class GitCheck(OESelftestTestCase):
|
|
def test_git_intercept(self):
|
|
"""
|
|
Git binaries with CVE-2022-24765 fixed will refuse to operate on a
|
|
repository which is owned by a different user. This breaks our
|
|
do_install task as that runs inside pseudo, so the git repository is
|
|
owned by the build user but git is running as (fake)root.
|
|
|
|
We have an intercept which disables pseudo, so verify that it works.
|
|
"""
|
|
bitbake("git-submodule-test -c test_git_as_user")
|
|
bitbake("git-submodule-test -c test_git_as_root")
|