diff options
| author | lbonn <lbonn@users.noreply.github.com> | 2019-07-19 17:21:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-19 17:21:35 +0200 |
| commit | 24e941d1296e960ed75206aab01d73d29d91506f (patch) | |
| tree | 0c7bbfeb588a5c93efd0a9e458273deb078cc365 /lib/oeqa/selftest/cases/updater_minnowboard.py | |
| parent | 1c049cbaec927971b0425e608b68551a4d2b898b (diff) | |
| parent | ba1c931dde251637f2718e33532f7e469954470f (diff) | |
| download | meta-updater-24e941d1296e960ed75206aab01d73d29d91506f.tar.gz | |
Ci on thud (#542)
Ci on thud
Diffstat (limited to 'lib/oeqa/selftest/cases/updater_minnowboard.py')
| -rw-r--r-- | lib/oeqa/selftest/cases/updater_minnowboard.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/oeqa/selftest/cases/updater_minnowboard.py b/lib/oeqa/selftest/cases/updater_minnowboard.py index 267445b..f4da360 100644 --- a/lib/oeqa/selftest/cases/updater_minnowboard.py +++ b/lib/oeqa/selftest/cases/updater_minnowboard.py | |||
| @@ -1,9 +1,8 @@ | |||
| 1 | import os | ||
| 2 | import re | 1 | import re |
| 3 | 2 | ||
| 4 | from oeqa.selftest.case import OESelftestTestCase | 3 | from oeqa.selftest.case import OESelftestTestCase |
| 5 | from oeqa.utils.commands import runCmd, get_bb_var | 4 | from oeqa.utils.commands import runCmd, get_bb_var |
| 6 | from testutils import qemu_launch, qemu_send_command, qemu_terminate, verifyProvisioned | 5 | from testutils import metadir, qemu_launch, qemu_send_command, qemu_terminate, verifyProvisioned |
| 7 | 6 | ||
| 8 | 7 | ||
| 9 | class MinnowTests(OESelftestTestCase): | 8 | class MinnowTests(OESelftestTestCase): |
| @@ -12,25 +11,20 @@ class MinnowTests(OESelftestTestCase): | |||
| 12 | layer_intel = "meta-intel" | 11 | layer_intel = "meta-intel" |
| 13 | layer_minnow = "meta-updater-minnowboard" | 12 | layer_minnow = "meta-updater-minnowboard" |
| 14 | result = runCmd('bitbake-layers show-layers') | 13 | result = runCmd('bitbake-layers show-layers') |
| 15 | # Assume the directory layout for finding other layers. We could also | ||
| 16 | # make assumptions by using 'show-layers', but either way, if the | ||
| 17 | # layers we need aren't where we expect them, we are out of luck. | ||
| 18 | path = os.path.abspath(os.path.dirname(__file__)) | ||
| 19 | metadir = path + "/../../../../../" | ||
| 20 | if re.search(layer_intel, result.output) is None: | 14 | if re.search(layer_intel, result.output) is None: |
| 21 | self.meta_intel = metadir + layer_intel | 15 | self.meta_intel = metadir() + layer_intel |
| 22 | runCmd('bitbake-layers add-layer "%s"' % self.meta_intel) | 16 | runCmd('bitbake-layers add-layer "%s"' % self.meta_intel) |
| 23 | else: | 17 | else: |
| 24 | self.meta_intel = None | 18 | self.meta_intel = None |
| 25 | if re.search(layer_minnow, result.output) is None: | 19 | if re.search(layer_minnow, result.output) is None: |
| 26 | self.meta_minnow = metadir + layer_minnow | 20 | self.meta_minnow = metadir() + layer_minnow |
| 27 | runCmd('bitbake-layers add-layer "%s"' % self.meta_minnow) | 21 | runCmd('bitbake-layers add-layer "%s"' % self.meta_minnow) |
| 28 | else: | 22 | else: |
| 29 | self.meta_minnow = None | 23 | self.meta_minnow = None |
| 30 | self.append_config('MACHINE = "intel-corei7-64"') | 24 | self.append_config('MACHINE = "intel-corei7-64"') |
| 31 | self.append_config('OSTREE_BOOTLOADER = "grub"') | 25 | self.append_config('OSTREE_BOOTLOADER = "grub"') |
| 32 | self.append_config('SOTA_CLIENT_PROV = " aktualizr-shared-prov "') | 26 | self.append_config('SOTA_CLIENT_PROV = " aktualizr-shared-prov "') |
| 33 | self.qemu, self.s = qemu_launch(efi=True, machine='intel-corei7-64') | 27 | self.qemu, self.s = qemu_launch(efi=True, machine='intel-corei7-64', mem='512M') |
| 34 | 28 | ||
| 35 | def tearDownLocal(self): | 29 | def tearDownLocal(self): |
| 36 | qemu_terminate(self.s) | 30 | qemu_terminate(self.s) |
