[bitbake-devel] [OE-core] [PATCH 2/2] tests/fetch.py: adds test_local_dir_subdirparam test case
Ming Liu
liu.ming50 at gmail.com
Fri Nov 13 18:15:32 UTC 2015
From: Ming Liu <peter.x.liu at external.atlascopco.com>
Also renames test_local_subdirparam to test_local_file_subdirparam to
distinguish with test_local_dir_subdirparam.
Signed-off-by: Ming Liu <peter.x.liu at external.atlascopco.com>
---
lib/bb/tests/fetch.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py
index 94173c1..435cd91 100644
--- a/lib/bb/tests/fetch.py
+++ b/lib/bb/tests/fetch.py
@@ -469,10 +469,14 @@ class FetcherLocalTest(FetcherTest):
tree = self.fetchUnpack(['file://dir/subdir/e'])
self.assertEqual(tree, ['dir/subdir/e'])
- def test_local_subdirparam(self):
+ def test_local_file_subdirparam(self):
tree = self.fetchUnpack(['file://a;subdir=bar'])
self.assertEqual(tree, ['bar/a'])
+ def test_local_dir_subdirparam(self):
+ tree = self.fetchUnpack(['file://dir;subdir=bar'])
+ self.assertEqual(tree, ['bar/dir/c', 'bar/dir/d', 'bar/dir/subdir/e'])
+
def test_local_deepsubdirparam(self):
tree = self.fetchUnpack(['file://dir/subdir/e;subdir=bar'])
self.assertEqual(tree, ['bar/dir/subdir/e'])
--
1.9.1
More information about the bitbake-devel
mailing list