[bitbake-devel,OE-core,2/2] tests/fetch.py: adds test_local_dir_subdirparam test case

Submitted by Ming Liu on Nov. 13, 2015, 6:15 p.m. | Patch ID: 107675

Details

Message ID 1447438532-9595-2-git-send-email-liu.ming50@gmail.com
State New
Headers show

Commit Message

Ming Liu Nov. 13, 2015, 6:15 p.m.
From: Ming Liu <peter.x.liu@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@external.atlascopco.com>
---
 lib/bb/tests/fetch.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

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'])