]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oeqa/selftest/devtool: abort if a local workspace already exist
authorJulien Stephan <jstephan@baylibre.com>
Wed, 25 Oct 2023 16:02:44 +0000 (18:02 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 Oct 2023 07:28:04 +0000 (08:28 +0100)
commita74962cfb0485f6f2b9e2b751c33c8eafca8705a
tree73b0770db02ce36fe014f0ade5ba4afb651f9026
parent77497dbdca92ab4d6386a071bc281c42a7e8a14b
oeqa/selftest/devtool: abort if a local workspace already exist

if user run devtool selftests with a local workspacelayer
the tests fail with various error such as:

- devtool.DevtoolAddTests.test_devtool_add just hangs
- devtool.DevtoolModifyTests.* fail with the following error:

 ERROR: Found duplicated BBFILE_COLLECTIONS 'workspacelayer', check bblayers.conf or layer.conf to fix it.
 Found duplicated BBFILE_COLLECTIONS 'workspacelayer', check bblayers.conf or layer.conf to fix it.

Check if a workspacelayer exists, warn the user and abort the tests

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/devtool.py