tests/fetch: new test case for absolute paths with wildcards
PATCH 1/1 tests/fetch: new test case for absolute paths with wildcards
Signed-off-by Alexander Shashkevich <[email protected]>
--- bitbake/lib/bb/tests/fetch.py | 5 +++++ 1 file changed, 5 insertions(+)
bitbake/lib/bb/tests/fetch.py +5 -0
@@ -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