mirror of
https://git.yoctoproject.org/poky
synced 2026-04-13 14:02:21 +02:00
oeqa/concurrencytest: Improve builddir path manipulations
Its possible some patterns may cause problems with the current path manipulations, make a small tweak to try and avoid potential pathname overlap issues. (From OE-Core rev: 889005dc17d3e3b8eadee907ee2c05b8ff613285) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -82,7 +82,9 @@ class OESelftestTestContext(OETestContext):
|
||||
oe.path.copytree(selftestdir, newselftestdir)
|
||||
|
||||
for e in os.environ:
|
||||
if builddir + "/" in os.environ[e] or os.environ[e].endswith(builddir):
|
||||
if builddir + "/" in os.environ[e]:
|
||||
os.environ[e] = os.environ[e].replace(builddir + "/", newbuilddir + "/")
|
||||
if 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)
|
||||
|
||||
Reference in New Issue
Block a user