diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-08 09:59:54 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-08 16:43:40 +0100 |
commit | e9ec164efa701f69014a8def9a07e96db0253779 (patch) | |
tree | 249f0146c08e98f8d2e29c762e0df68d310c4368 /meta | |
parent | 906644c09e80ebc78aafcb6b9bf83123d2e31f57 (diff) | |
download | poky-e9ec164efa701f69014a8def9a07e96db0253779.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/context.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/context.py b/meta/lib/oeqa/selftest/context.py index 23f7d71bdb..dd3609c1d6 100644 --- a/meta/lib/oeqa/selftest/context.py +++ b/meta/lib/oeqa/selftest/context.py | |||
@@ -82,7 +82,9 @@ class OESelftestTestContext(OETestContext): | |||
82 | oe.path.copytree(selftestdir, newselftestdir) | 82 | oe.path.copytree(selftestdir, newselftestdir) |
83 | 83 | ||
84 | for e in os.environ: | 84 | for e in os.environ: |
85 | if builddir + "/" in os.environ[e] or os.environ[e].endswith(builddir): | 85 | if builddir + "/" in os.environ[e]: |
86 | os.environ[e] = os.environ[e].replace(builddir + "/", newbuilddir + "/") | ||
87 | if os.environ[e].endswith(builddir): | ||
86 | os.environ[e] = os.environ[e].replace(builddir, newbuilddir) | 88 | os.environ[e] = os.environ[e].replace(builddir, newbuilddir) |
87 | 89 | ||
88 | subprocess.check_output("git init; git add *; git commit -a -m 'initial'", cwd=newselftestdir, shell=True) | 90 | subprocess.check_output("git init; git add *; git commit -a -m 'initial'", cwd=newselftestdir, shell=True) |