]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-selftest: devtool: Support meta being a symbolic link uninative-2.3
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Sat, 20 Oct 2018 23:20:59 +0000 (01:20 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 21 Oct 2018 20:30:30 +0000 (21:30 +0100)
oe-selftest's devtool tests have been broken since commit 2457cd57
(oe-selftest: devtool: avoid parallel races by using temporary copy of
core) if meta is a symbolic link.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/devtool.py

index 3c1189003de9e05a32c6892da24422813e552bae..9eb9badf84f41860638d5b601f7a3fa134f9717e 100644 (file)
@@ -32,8 +32,9 @@ def setUpModule():
             # This helps us match exactly when we're using this path later
             canonical_layerpath += '/'
         if not edited_layers and canonical_layerpath.endswith('/meta/'):
+            canonical_layerpath = os.path.realpath(canonical_layerpath) + '/'
             edited_layers.append(layerpath)
-            oldmetapath = layerpath
+            oldmetapath = os.path.realpath(layerpath)
             result = runCmd('git rev-parse --show-toplevel', cwd=canonical_layerpath)
             oldreporoot = result.output.rstrip()
             newmetapath = os.path.join(corecopydir, os.path.relpath(oldmetapath, oldreporoot))