diff options
author | Ben Luck <ben+qa@advancedtelematic.com> | 2019-02-27 13:51:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-27 13:51:33 +0100 |
commit | a512fd6e0d519058fe0448098d064aa7e45dc7db (patch) | |
tree | 81f3be27ea0eb5f442e0b82af428c346a0af806f /lib/oeqa/selftest/cases/updater.py | |
parent | 6162cb3507ea6416396cbb700485629d7d3128e3 (diff) | |
parent | cfd16dc98ad78a724372b42056b3a94583743d36 (diff) | |
download | meta-updater-a512fd6e0d519058fe0448098d064aa7e45dc7db.tar.gz |
Merge pull request #495 from advancedtelematic/backport/rocko/auto-reboot-etc
Backport/rocko/auto reboot etc
Diffstat (limited to 'lib/oeqa/selftest/cases/updater.py')
-rw-r--r-- | lib/oeqa/selftest/cases/updater.py | 29 |
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 | ||
96 | class AktualizrToolsTests(OESelftestTestCase): | 67 | class AktualizrToolsTests(OESelftestTestCase): |
97 | 68 | ||