summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2019-07-03 11:39:48 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-03 17:00:57 +0100
commit5fc79300641429c4d78e07e22badc2c8f76e09bd (patch)
tree7cc852b3bd958453a6b962b770ec24d004643794 /meta/lib
parent6df5aa2cc2462f59042861180dc9cc6c20631994 (diff)
downloadpoky-5fc79300641429c4d78e07e22badc2c8f76e09bd.tar.gz
devtool.py: track to clean devtool.conf in test_create_workspace
`devtool create-workspace' would create devtool.conf, so track to clean it up. Otherwise, this devtool.conf file would mess things up. e.g. oe-selftest -r devtool && oe-selftest -r devtool -j 2 AssertionError: '/PROJ_DIR/build-selftest-st-15753/workspace/conf/layer.conf' does not exist : Workspace directory not created This is because the devtool.conf is also copied to build-selftest-st-xxxx directory, resulting in devtool to create and use workspace specified in this file. (From OE-Core rev: a0a96db23686a38235fb0373e75e8b2951216c18) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/cases/devtool.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py
index 904ff6988b..6fe145c994 100644
--- a/meta/lib/oeqa/selftest/cases/devtool.py
+++ b/meta/lib/oeqa/selftest/cases/devtool.py
@@ -240,6 +240,9 @@ class DevtoolTests(DevtoolBase):
240 # Check preconditions 240 # Check preconditions
241 result = runCmd('bitbake-layers show-layers') 241 result = runCmd('bitbake-layers show-layers')
242 self.assertTrue('\nworkspace' not in result.output, 'This test cannot be run with a workspace layer in bblayers.conf') 242 self.assertTrue('\nworkspace' not in result.output, 'This test cannot be run with a workspace layer in bblayers.conf')
243 # remove conf/devtool.conf to avoid it corrupting tests
244 devtoolconf = os.path.join(self.builddir, 'conf', 'devtool.conf')
245 self.track_for_cleanup(devtoolconf)
243 # Try creating a workspace layer with a specific path 246 # Try creating a workspace layer with a specific path
244 tempdir = tempfile.mkdtemp(prefix='devtoolqa') 247 tempdir = tempfile.mkdtemp(prefix='devtoolqa')
245 self.track_for_cleanup(tempdir) 248 self.track_for_cleanup(tempdir)