diff mbox series

[v2,2/2] tests/runqueue: cover --skip-deps

Message ID 20251230153539.3940266-3-adrian.freihofer@siemens.com
State New
Headers show
Series bitbake --skip-deps feature | expand

Commit Message

AdrianF Dec. 30, 2025, 3:32 p.m. UTC
From: Adrian Freihofer <adrian.freihofer@siemens.com>

Add a test case to verify that --skip-deps leads to only the specified
task being run.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
---
 lib/bb/tests/runqueue.py | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/lib/bb/tests/runqueue.py b/lib/bb/tests/runqueue.py
index 74f5ded2e..231153cab 100644
--- a/lib/bb/tests/runqueue.py
+++ b/lib/bb/tests/runqueue.py
@@ -403,6 +403,15 @@  class RunQueueTests(unittest.TestCase):
 
             self.shutdown(tempdir)
 
+    def test_skip_deps(self):
+        with tempfile.TemporaryDirectory(prefix="runqueuetest") as tempdir:
+            cmd = ["bitbake", "a1", "-c", "install", "--skip-deps"]
+            tasks = self.run_bitbakecmd(cmd, tempdir)
+            expected = ['a1:install']
+            self.assertEqual(set(tasks), set(expected))
+
+            self.shutdown(tempdir)
+
     def shutdown(self, tempdir):
         # Wait for the hashserve socket to disappear else we'll see races with the tempdir cleanup
         while (os.path.exists(tempdir + "/hashserve.sock") or os.path.exists(tempdir + "cache/hashserv.db-wal") or os.path.exists(tempdir + "/bitbake.lock")):