summaryrefslogtreecommitdiffstats
path: root/lib/oeqa/selftest/cases
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2019-02-26 11:13:14 +0100
committerPatrick Vacek <patrickvacek@gmail.com>2019-02-26 17:14:01 +0100
commitbcb6c5b641881fefd10d842e4cb982a0d92812b6 (patch)
treeaa53216f07161b7081a5de20e1702386c9750e82 /lib/oeqa/selftest/cases
parentbe0e6d2bb8e9f62d861b116ac55197064424f3fe (diff)
downloadmeta-updater-bcb6c5b641881fefd10d842e4cb982a0d92812b6.tar.gz
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 <patrickvacek@gmail.com>
Diffstat (limited to 'lib/oeqa/selftest/cases')
-rw-r--r--lib/oeqa/selftest/cases/updater.py29
1 files changed, 0 insertions, 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):
67 self.assertEqual(result.status, 0, 67 self.assertEqual(result.status, 0,
68 "Java not found. Do you have a JDK installed on your host machine?") 68 "Java not found. Do you have a JDK installed on your host machine?")
69 69
70 def test_add_package(self):
71 deploydir = get_bb_var('DEPLOY_DIR_IMAGE')
72 imagename = get_bb_var('IMAGE_LINK_NAME', 'core-image-minimal')
73 image_path = deploydir + '/' + imagename + '.ota-ext4'
74 logger = logging.getLogger("selftest")
75
76 logger.info('Running bitbake with man in the image package list')
77 self.append_config('IMAGE_INSTALL_append = " man "')
78 bitbake('-c cleanall man-db')
79 bitbake('core-image-minimal')
80 result = runCmd('oe-pkgdata-util find-path /usr/bin/man')
81 self.assertEqual(result.output, 'man-db: /usr/bin/man')
82 path1 = os.path.realpath(image_path)
83 size1 = os.path.getsize(path1)
84 logger.info('First image %s has size %i' % (path1, size1))
85
86 logger.info('Running bitbake without man in the image package list')
87 self.append_config('IMAGE_INSTALL_remove = " man "')
88 bitbake('-c cleanall man-db')
89 bitbake('core-image-minimal')
90 result = runCmd('oe-pkgdata-util find-path /usr/bin/man', ignore_status=True)
91 self.assertEqual(result.status, 1, "Status different than 1. output: %s" % result.output)
92 self.assertEqual(result.output, 'ERROR: Unable to find any package producing path /usr/bin/man')
93 path2 = os.path.realpath(image_path)
94 size2 = os.path.getsize(path2)
95 logger.info('Second image %s has size %i', path2, size2)
96 self.assertNotEqual(path1, path2, "Image paths are identical; image was not rebuilt.")
97 self.assertNotEqual(size1, size2, "Image sizes are identical; image was not rebuilt.")
98
99 70
100class AktualizrToolsTests(OESelftestTestCase): 71class AktualizrToolsTests(OESelftestTestCase):
101 72