selftest/signing: Ensure build path relocation is safe
PATCH 1/1 selftest/signing: Ensure build path relocation is safe
Similarly to 04ee0e8b95cd8ed890374e0007f976684206b630, ensure only full build paths are replaced in the environment to avoid breaking buildtools.
Signed-off-by Richard Purdie <[email protected]>
--- meta/lib/oeqa/selftest/cases/signing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/lib/oeqa/selftest/cases/signing.py +2 -2
@@ -44,8 +44,8 @@ class Signing(OESelftestTestCase): origenv = os.environ.copy() for e in os.environ: - if builddir in os.environ[e]: - os.environ[e] = os.environ[e].replace(builddir, newbuilddir) + if builddir + "/" in os.environ[e]: + os.environ[e] = os.environ[e].replace(builddir + "/", newbuilddir + "/") os.chdir(newbuilddir) try:
Signature · 1 line
2.25.1