]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oeqa/selftest: Only rewrite envvars paths that absolutely point to builddir
authorYoann Congal <yoann.congal@smile.fr>
Tue, 10 Sep 2024 20:47:35 +0000 (22:47 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Sep 2024 15:15:06 +0000 (16:15 +0100)
commitc5e70500caffcd0518899cc6eba23a38bc3be108
tree67b96f75b223793f9f7e7265dc418cde60c86230
parent9f3099b7eddccf2b7328c0fdd6423269d17138ce
oeqa/selftest: Only rewrite envvars paths that absolutely point to builddir

When building the new selftest builddir, paths in environment variables
are rewritten to point to the new buildir, but users can have
environment variables that point outside of the build dir using
relative paths from builddir. We must not rewrite those.

Check this by verifying that the absolute path still contains the
builddir.

Fixes [YOCTO #15241]

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/context.py