[bitbake-devel] [PATCH] tests/fetch: new test case for absolute paths with wildcards

Alexander Shashkevich alex at stunpix.com
Thu Mar 10 21:58:07 UTC 2016


Signed-off-by: Alexander Shashkevich <alex at stunpix.com>
---
 bitbake/lib/bb/tests/fetch.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py
index b3de37e..80b5f17 100644
--- a/bitbake/lib/bb/tests/fetch.py
+++ b/bitbake/lib/bb/tests/fetch.py
@@ -497,6 +497,11 @@ class FetcherLocalTest(FetcherTest):
         tree = self.fetchUnpack([abspath + '/dir/subdir/', abspath + '/dir/subdir/;subdir=bar'])
         self.assertEqual(tree, ['bar/subdir/e', 'subdir/e'])
 
+    def test_local_abspath_wildcard(self):
+        abspath = 'file://%s' % self.localsrcdir
+        tree = self.fetchUnpack([abspath + '/dir/*', abspath + '/dir/*;subdir=bar'])
+        self.assertEqual(tree, ['bar/c', 'bar/d', 'bar/subdir/e', 'c', 'd', 'subdir/e'])
+
 class FetcherNetworkTest(FetcherTest):
 
     if os.environ.get("BB_SKIP_NETTESTS") == "yes":
-- 
2.5.0




More information about the bitbake-devel mailing list