diff options
| author | lbonn <lbonn@users.noreply.github.com> | 2019-07-17 09:58:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-17 09:58:39 +0200 |
| commit | b11e4ab227bed2e368646cb348e41a4603ed55e0 (patch) | |
| tree | 8f5430210f314fc3ef7aead29beecf99047b8894 /lib/oeqa/selftest/cases/updater_raspberrypi.py | |
| parent | f68e1d59f0a0ed4341dad3b16d4979b1b63336d7 (diff) | |
| parent | 5463396b1d47a122f5aef9a619244fd1777c0b56 (diff) | |
| download | meta-updater-b11e4ab227bed2e368646cb348e41a4603ed55e0.tar.gz | |
Merge pull request #537 from advancedtelematic/ci/oe-selftest
Ci/oe selftest
Diffstat (limited to 'lib/oeqa/selftest/cases/updater_raspberrypi.py')
| -rw-r--r-- | lib/oeqa/selftest/cases/updater_raspberrypi.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/oeqa/selftest/cases/updater_raspberrypi.py b/lib/oeqa/selftest/cases/updater_raspberrypi.py index e976100..8efc941 100644 --- a/lib/oeqa/selftest/cases/updater_raspberrypi.py +++ b/lib/oeqa/selftest/cases/updater_raspberrypi.py | |||
| @@ -7,6 +7,8 @@ import unittest | |||
| 7 | from oeqa.selftest.case import OESelftestTestCase | 7 | from oeqa.selftest.case import OESelftestTestCase |
| 8 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var | 8 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var |
| 9 | 9 | ||
| 10 | from testutils import metadir | ||
| 11 | |||
| 10 | 12 | ||
| 11 | class RpiTests(OESelftestTestCase): | 13 | class RpiTests(OESelftestTestCase): |
| 12 | 14 | ||
| @@ -16,18 +18,13 @@ class RpiTests(OESelftestTestCase): | |||
| 16 | layer_rpi = "meta-raspberrypi" | 18 | layer_rpi = "meta-raspberrypi" |
| 17 | layer_upd_rpi = "meta-updater-raspberrypi" | 19 | layer_upd_rpi = "meta-updater-raspberrypi" |
| 18 | result = runCmd('bitbake-layers show-layers') | 20 | result = runCmd('bitbake-layers show-layers') |
| 19 | # Assume the directory layout for finding other layers. We could also | ||
| 20 | # make assumptions by using 'show-layers', but either way, if the | ||
| 21 | # layers we need aren't where we expect them, we are out of luck. | ||
| 22 | path = os.path.abspath(os.path.dirname(__file__)) | ||
| 23 | metadir = path + "/../../../../../" | ||
| 24 | if re.search(layer_rpi, result.output) is None: | 21 | if re.search(layer_rpi, result.output) is None: |
| 25 | self.meta_rpi = metadir + layer_rpi | 22 | self.meta_rpi = metadir() + layer_rpi |
| 26 | runCmd('bitbake-layers add-layer "%s"' % self.meta_rpi) | 23 | runCmd('bitbake-layers add-layer "%s"' % self.meta_rpi) |
| 27 | else: | 24 | else: |
| 28 | self.meta_rpi = None | 25 | self.meta_rpi = None |
| 29 | if re.search(layer_upd_rpi, result.output) is None: | 26 | if re.search(layer_upd_rpi, result.output) is None: |
| 30 | self.meta_upd_rpi = metadir + layer_upd_rpi | 27 | self.meta_upd_rpi = metadir() + layer_upd_rpi |
| 31 | runCmd('bitbake-layers add-layer "%s"' % self.meta_upd_rpi) | 28 | runCmd('bitbake-layers add-layer "%s"' % self.meta_upd_rpi) |
| 32 | else: | 29 | else: |
| 33 | self.meta_upd_rpi = None | 30 | self.meta_upd_rpi = None |
