diff options
author | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2012-06-04 16:09:07 -0300 |
---|---|---|
committer | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2012-06-04 16:09:07 -0300 |
commit | 8ba05a96af86bcb002a18d57961c68ce8513d86c (patch) | |
tree | ed506953d06ee3387464b80f3e900e1ef76f294e | |
parent | c16f55c314b8082a1fea3df05ee73e5f0f55c82a (diff) |
test_cerbero_packages_linux: Fix it to consider latest changes in LinuxPackager.
-rw-r--r-- | test/test_cerbero_packages_linux.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/test_cerbero_packages_linux.py b/test/test_cerbero_packages_linux.py index e1b99ca9..a29b0198 100644 --- a/test/test_cerbero_packages_linux.py +++ b/test/test_cerbero_packages_linux.py @@ -31,7 +31,7 @@ packed = [] class LoggerPackager(linux.LinuxPackager): - def pack(self, output_dir, devel, force, pack_deps, tmpdir): + def pack(self, output_dir, devel, force, keep_temp, pack_deps, tmpdir): packed.append(self.package.name) @@ -123,7 +123,10 @@ class LinuxPackagesTest(unittest.TestCase): expected = (['gstreamer-test1'], ['gstreamer-test3'], ['gstreamer-test-bindings']) - requires = self.packager.get_meta_requires(PackageType.RUNTIME, '-dev') + self.store.get_package('gstreamer-test1').has_runtime_package = True + self.store.get_package('gstreamer-test3').has_runtime_package = True + self.store.get_package('gstreamer-test-bindings').has_runtime_package = True + requires = self.packager.get_meta_requires(PackageType.RUNTIME, '') self.assertEquals(expected, requires) # test devel packages @@ -166,14 +169,14 @@ class LinuxPackagesTest(unittest.TestCase): def testPack(self): self.packager = DummyPackager(self.config, self.store.get_package('gstreamer-runtime'), self.store) - paths = self.packager.pack('', False, True, False, None) + paths = self.packager.pack('', False, True, True, False, None) self.assertTrue(os.path.exists('gstreamer-runtime-stamp')) os.remove('gstreamer-runtime-stamp') self.assertEquals(paths, ['test']) self.packager = DummyPackager(self.config, self.store.get_package('gstreamer-test1'), self.store) - paths = self.packager.pack('', False, True, False, None) + paths = self.packager.pack('', False, True, True, False, None) self.assertTrue(os.path.exists('gstreamer-test1-stamp')) os.remove('gstreamer-test1-stamp') self.assertEquals(paths, ['test']) |