mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
oeqa/selftest: Ensure buildtools in environment variables isn't replaced
This avoids the seeing broken replacements like: oe-selftest-centos/build/build-st-926tools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt which understandably break builds. (From OE-Core rev: 04ee0e8b95cd8ed890374e0007f976684206b630) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
a67e91b1ba
commit
f930e2cadb
|
|
@ -46,7 +46,7 @@ class OESelftestTestContext(OETestContext):
|
|||
oe.path.copytree(selftestdir, newselftestdir)
|
||||
|
||||
for e in os.environ:
|
||||
if builddir in os.environ[e]:
|
||||
if builddir + "/" in os.environ[e] or os.environ[e].endswith(builddir):
|
||||
os.environ[e] = os.environ[e].replace(builddir, newbuilddir)
|
||||
|
||||
subprocess.check_output("git init; git add *; git commit -a -m 'initial'", cwd=newselftestdir, shell=True)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user