* [OE-core][RESEND][PATCH 1/2] oeqa/selftest/devtool: abort if a local workspace already exist
@ 2023-10-25 16:02 Julien Stephan
2023-10-25 16:02 ` [OE-core][RESEND][PATCH 2/2] oeqa/selftest/devtool: remove spaces on empty line Julien Stephan
0 siblings, 1 reply; 2+ messages in thread
From: Julien Stephan @ 2023-10-25 16:02 UTC (permalink / raw)
To: openembedded-core; +Cc: Julien Stephan
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>
---
meta/lib/oeqa/selftest/cases/devtool.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py
index b577f6d62a1..c36b1efa78b 100644
--- a/meta/lib/oeqa/selftest/cases/devtool.py
+++ b/meta/lib/oeqa/selftest/cases/devtool.py
@@ -27,6 +27,9 @@ def setUpModule():
corecopydir = os.path.join(templayerdir, 'core-copy')
bblayers_conf = os.path.join(os.environ['BUILDDIR'], 'conf', 'bblayers.conf')
edited_layers = []
+ # make sure user doesn't have a local workspace
+ result = runCmd('bitbake-layers show-layers')
+ assert "workspacelayer" not in result.output, "Devtool test suite cannot be run with a local workspace directory"
# We need to take a copy of the meta layer so we can modify it and not
# have any races against other tests that might be running in parallel
--
2.42.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-25 16:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-25 16:02 [OE-core][RESEND][PATCH 1/2] oeqa/selftest/devtool: abort if a local workspace already exist Julien Stephan
2023-10-25 16:02 ` [OE-core][RESEND][PATCH 2/2] oeqa/selftest/devtool: remove spaces on empty line Julien Stephan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox