mirror of
git://git.yoctoproject.org/poky
synced 2026-08-12 03:52:29 +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) (Cherry-picked from f930e2cadb9ee69759720b6c49aeeb6dd43a7edd but adjusted for thud) (From OE-Core rev: b51a8c390714357713e91d828708c85cf5f68971) (From OE-Core rev: cf51a1e4447010f927a9e3f4ff5a5c305be0c0c9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
da3cbaec0d
commit
0c011f61e6
@ -199,7 +199,7 @@ def fork_for_tests(concurrency_num, suite):
|
||||
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…
x
Reference in New Issue
Block a user