]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
oeqa/selftest: Ensure buildtools in environment variables isn't replaced
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 Mar 2020 13:02:07 +0000 (13:02 +0000)
committerJeremy A. Puhlman <jpuhlman@mvista.com>
Thu, 16 Jul 2020 16:01:02 +0000 (09:01 -0700)
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.

(Cherry-picked from f930e2cadb9ee69759720b6c49aeeb6dd43a7edd but adjusted for thud)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
meta/lib/oeqa/core/utils/concurrencytest.py

index 1a58d35ba0ac028b3430e9899e3747059a6f4ecf..3e0e5d770c8b32bb05b8e210ab9b785b3516549b 100644 (file)
@@ -194,7 +194,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)