All of lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND PATCH 1/2] oeqa/selftest/devtool: abort if a local workspace already exist
@ 2023-10-24 14:17 Julien Stephan
  2023-10-24 14:17 ` [RESEND PATCH 2/2] oeqa/selftest/devtool: remove spaces on empty line Julien Stephan
  0 siblings, 1 reply; 5+ messages in thread
From: Julien Stephan @ 2023-10-24 14:17 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.41.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [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; 5+ 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] 5+ messages in thread

end of thread, other threads:[~2023-10-25 16:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-24 14:17 [RESEND PATCH 1/2] oeqa/selftest/devtool: abort if a local workspace already exist Julien Stephan
2023-10-24 14:17 ` [RESEND PATCH 2/2] oeqa/selftest/devtool: remove spaces on empty line Julien Stephan
2023-10-25 15:01   ` [OE-core] " Luca Ceresoli
2023-10-25 16:04     ` Julien Stephan
  -- strict thread matches above, loose matches on Subject: below --
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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.