summaryrefslogtreecommitdiffstats
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:13:54 +0100
commit0d0eb4bd090cbb76b3cd61d1ff44cfb9759d6634 (patch)
tree53231fd435a764d1fc83e3cf9e30e4d505d85431
parent9df740e77427adbed6e7156b01cc475962936063 (diff)
downloadmeta-updater-0d0eb4bd090cbb76b3cd61d1ff44cfb9759d6634.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>
-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 4813b2e..07232d7 100644
--- a/lib/oeqa/selftest/cases/updater.py
+++ b/lib/oeqa/selftest/cases/updater.py
@@ -63,35 +63,6 @@ class GeneralTests(OESelftestTestCase):
63 self.assertEqual(result.status, 0, 63 self.assertEqual(result.status, 0,
64 "Java not found. Do you have a JDK installed on your host machine?") 64 "Java not found. Do you have a JDK installed on your host machine?")
65 65
66 def test_add_package(self):
67 deploydir = get_bb_var('DEPLOY_DIR_IMAGE')
68 imagename = get_bb_var('IMAGE_LINK_NAME', 'core-image-minimal')
69 image_path = deploydir + '/' + imagename + '.otaimg'
70 logger = logging.getLogger("selftest")
71
72 logger.info('Running bitbake with man in the image package list')
73 self.append_config('IMAGE_INSTALL_append = " man "')
74 bitbake('-c cleanall man')
75 bitbake('core-image-minimal')
76 result = runCmd('oe-pkgdata-util find-path /usr/bin/man')
77 self.assertEqual(result.output, 'man: /usr/bin/man')
78 path1 = os.path.realpath(image_path)
79 size1 = os.path.getsize(path1)
80 logger.info('First image %s has size %i' % (path1, size1))
81
82 logger.info('Running bitbake without man in the image package list')
83 self.append_config('IMAGE_INSTALL_remove = " man "')
84 bitbake('-c cleanall man')
85 bitbake('core-image-minimal')
86 result = runCmd('oe-pkgdata-util find-path /usr/bin/man', ignore_status=True)
87 self.assertEqual(result.status, 1, "Status different than 1. output: %s" % result.output)
88 self.assertEqual(result.output, 'ERROR: Unable to find any package producing path /usr/bin/man')
89 path2 = os.path.realpath(image_path)
90 size2 = os.path.getsize(path2)
91 logger.info('Second image %s has size %i', path2, size2)
92 self.assertNotEqual(path1, path2, "Image paths are identical; image was not rebuilt.")
93 self.assertNotEqual(size1, size2, "Image sizes are identical; image was not rebuilt.")
94
95 66
96class AktualizrToolsTests(OESelftestTestCase): 67class AktualizrToolsTests(OESelftestTestCase):
97 68