Skip to contentSkip to conversation

tests/fetch: new test case for absolute paths with wildcards

PATCH New Alexander Shashkevich 1 participant 1 message Mar 10, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/fetch: new test case for absolute paths with wildcards

---
 bitbake/lib/bb/tests/fetch.py | 5 +++++
 1 file changed, 5 insertions(+)
bitbake/lib/bb/tests/fetch.py +5 -0
index b3de37e..80b5f17 100644
@@ -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":
Signature · 1 line
2.5.0