summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/intercept.py
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2022-07-22 14:14:45 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-07-25 22:59:00 +0100
commite49831d1f8e4339181658f3897be56d8b4368c72 (patch)
tree23a3a70f9fa58ffbf751605f1033f6ef0f47dc4c /meta/lib/oeqa/selftest/cases/intercept.py
parent454a0ea700b1118e8b24136e03bb03879db960e1 (diff)
downloadpoky-e49831d1f8e4339181658f3897be56d8b4368c72.tar.gz
oeqa/selftest: rename git.py to intercept.py
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) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/intercept.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/intercept.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/intercept.py b/meta/lib/oeqa/selftest/cases/intercept.py
new file mode 100644
index 0000000000..f12874dc7d
--- /dev/null
+++ b/meta/lib/oeqa/selftest/cases/intercept.py
@@ -0,0 +1,15 @@
1from oeqa.selftest.case import OESelftestTestCase
2from oeqa.utils.commands import bitbake
3
4class GitCheck(OESelftestTestCase):
5 def test_git_intercept(self):
6 """
7 Git binaries with CVE-2022-24765 fixed will refuse to operate on a
8 repository which is owned by a different user. This breaks our
9 do_install task as that runs inside pseudo, so the git repository is
10 owned by the build user but git is running as (fake)root.
11
12 We have an intercept which disables pseudo, so verify that it works.
13 """
14 bitbake("git-submodule-test -c test_git_as_user")
15 bitbake("git-submodule-test -c test_git_as_root")