From e611429678b993f91b57d954c82c871dbcfad499 Mon Sep 17 00:00:00 2001 From: Patrick Vacek Date: Tue, 26 Feb 2019 11:13:14 +0100 Subject: updater.py: remove test_add_package. It was a nice idea when we were less confident about bitbaking and oe-selftest, but at this point, it is redundant and provides no useful information while adding extraneous time to the already long test suite. Signed-off-by: Patrick Vacek --- lib/oeqa/selftest/cases/updater.py | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/lib/oeqa/selftest/cases/updater.py b/lib/oeqa/selftest/cases/updater.py index 08521d5..550d9de 100644 --- a/lib/oeqa/selftest/cases/updater.py +++ b/lib/oeqa/selftest/cases/updater.py @@ -67,35 +67,6 @@ class GeneralTests(OESelftestTestCase): self.assertEqual(result.status, 0, "Java not found. Do you have a JDK installed on your host machine?") - def test_add_package(self): - deploydir = get_bb_var('DEPLOY_DIR_IMAGE') - imagename = get_bb_var('IMAGE_LINK_NAME', 'core-image-minimal') - image_path = deploydir + '/' + imagename + '.ota-ext4' - logger = logging.getLogger("selftest") - - logger.info('Running bitbake with man in the image package list') - self.append_config('IMAGE_INSTALL_append = " man "') - bitbake('-c cleanall man-db') - bitbake('core-image-minimal') - result = runCmd('oe-pkgdata-util find-path /usr/bin/man') - self.assertEqual(result.output, 'man-db: /usr/bin/man') - path1 = os.path.realpath(image_path) - size1 = os.path.getsize(path1) - logger.info('First image %s has size %i' % (path1, size1)) - - logger.info('Running bitbake without man in the image package list') - self.append_config('IMAGE_INSTALL_remove = " man "') - bitbake('-c cleanall man-db') - bitbake('core-image-minimal') - result = runCmd('oe-pkgdata-util find-path /usr/bin/man', ignore_status=True) - self.assertEqual(result.status, 1, "Status different than 1. output: %s" % result.output) - self.assertEqual(result.output, 'ERROR: Unable to find any package producing path /usr/bin/man') - path2 = os.path.realpath(image_path) - size2 = os.path.getsize(path2) - logger.info('Second image %s has size %i', path2, size2) - self.assertNotEqual(path1, path2, "Image paths are identical; image was not rebuilt.") - self.assertNotEqual(size1, size2, "Image sizes are identical; image was not rebuilt.") - class AktualizrToolsTests(OESelftestTestCase): -- cgit v1.2.3-54-g00ecf