diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2018-10-21 01:20:59 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-25 22:27:46 +0000 |
commit | c4681cc02eeb15a3ce0443400b9a027cb2960e6b (patch) | |
tree | 6b75a9fc5e51c94010e240c8e9b2eb807dcdb271 /meta | |
parent | e5eadb501b93d7f5d571d952da0424e45bfb1889 (diff) | |
download | poky-c4681cc02eeb15a3ce0443400b9a027cb2960e6b.tar.gz |
oe-selftest: devtool: Support meta being a symbolic link
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.
(From OE-Core rev: daba6c5a991b370709d17e51305334f55a3858ec)
(From OE-Core rev: 3eb59559ecd2e93fb590a330b47de1db0750fc0b)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/devtool.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py index 3d77497fc4..0ce90a4af9 100644 --- a/meta/lib/oeqa/selftest/cases/devtool.py +++ b/meta/lib/oeqa/selftest/cases/devtool.py | |||
@@ -32,8 +32,9 @@ def setUpModule(): | |||
32 | # This helps us match exactly when we're using this path later | 32 | # This helps us match exactly when we're using this path later |
33 | canonical_layerpath += '/' | 33 | canonical_layerpath += '/' |
34 | if not edited_layers and canonical_layerpath.endswith('/meta/'): | 34 | if not edited_layers and canonical_layerpath.endswith('/meta/'): |
35 | canonical_layerpath = os.path.realpath(canonical_layerpath) + '/' | ||
35 | edited_layers.append(layerpath) | 36 | edited_layers.append(layerpath) |
36 | oldmetapath = layerpath | 37 | oldmetapath = os.path.realpath(layerpath) |
37 | result = runCmd('git rev-parse --show-toplevel', cwd=canonical_layerpath) | 38 | result = runCmd('git rev-parse --show-toplevel', cwd=canonical_layerpath) |
38 | oldreporoot = result.output.rstrip() | 39 | oldreporoot = result.output.rstrip() |
39 | newmetapath = os.path.join(corecopydir, os.path.relpath(oldmetapath, oldreporoot)) | 40 | newmetapath = os.path.join(corecopydir, os.path.relpath(oldmetapath, oldreporoot)) |