diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-24 14:16:52 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-29 12:08:48 +0100 |
| commit | 8e4e03c2a32a6fff6e07f01ed36481e6e7ee0b4a (patch) | |
| tree | 1bcdaf0bf38728b0529ece37672154fb438a53ce /bitbake/lib/bb/tests | |
| parent | 1f4e75143a961665cf3010e9b0c6d480bbbe022a (diff) | |
| download | poky-8e4e03c2a32a6fff6e07f01ed36481e6e7ee0b4a.tar.gz | |
bitbake: fetch: Extend testing of subdir unpack parameter and fix
This fixes urls of the form file://some/path/file;subdir=b. It also
adds in a couple of tests so we now tests these corner cases.
(Bitbake rev: 46306912a96444790efa9418d934dfdd36773ba1)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/tests')
| -rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index 7df7a0ef51..d95b43a5e3 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
| @@ -444,6 +444,13 @@ class FetcherLocalTest(FetcherTest): | |||
| 444 | tree = self.fetchUnpack(['file://dir/subdir/e']) | 444 | tree = self.fetchUnpack(['file://dir/subdir/e']) |
| 445 | self.assertEqual(tree, ['dir/subdir/e']) | 445 | self.assertEqual(tree, ['dir/subdir/e']) |
| 446 | 446 | ||
| 447 | def test_local_subdirparam(self): | ||
| 448 | tree = self.fetchUnpack(['file://a;subdir=bar']) | ||
| 449 | self.assertEqual(tree, ['bar/a']) | ||
| 450 | |||
| 451 | def test_local_deepsubdirparam(self): | ||
| 452 | tree = self.fetchUnpack(['file://dir/subdir/e;subdir=bar']) | ||
| 453 | self.assertEqual(tree, ['bar/dir/subdir/e']) | ||
| 447 | 454 | ||
| 448 | class FetcherNetworkTest(FetcherTest): | 455 | class FetcherNetworkTest(FetcherTest): |
| 449 | 456 | ||
