summaryrefslogtreecommitdiffstats
path: root/lib/oeqa/selftest/cases/updater_raspberrypi.py
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2019-11-26 10:00:59 +0100
committerGitHub <noreply@github.com>2019-11-26 10:00:59 +0100
commita98ec26f5592994ae0163446f3971419d12aef70 (patch)
tree0599d7a7c8919265605f98d5dd2ed0d6b678673c /lib/oeqa/selftest/cases/updater_raspberrypi.py
parent0b087a34b708bfd808a013b3656f543d2709692e (diff)
parent8409a07d65a2b7bc2dbb56b11158e0f64ac1065a (diff)
downloadmeta-updater-a98ec26f5592994ae0163446f3971419d12aef70.tar.gz
Merge pull request #634 from advancedtelematic/feat/thud/2019.10
Feat/thud/2019.10
Diffstat (limited to 'lib/oeqa/selftest/cases/updater_raspberrypi.py')
-rw-r--r--lib/oeqa/selftest/cases/updater_raspberrypi.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/oeqa/selftest/cases/updater_raspberrypi.py b/lib/oeqa/selftest/cases/updater_raspberrypi.py
index 26d5c4c..25c5f12 100644
--- a/lib/oeqa/selftest/cases/updater_raspberrypi.py
+++ b/lib/oeqa/selftest/cases/updater_raspberrypi.py
@@ -35,26 +35,10 @@ class RpiTests(OESelftestTestCase):
35 else: 35 else:
36 self.meta_upd_rpi = None 36 self.meta_upd_rpi = None
37 37
38 # This is trickier that I would've thought. The fundamental problem is
39 # that the qemu layer changes the u-boot file extension to .rom, but
40 # raspberrypi still expects .bin. To prevent this, the qemu layer must
41 # be temporarily removed if it is present. It has to be removed by name
42 # without the complete path, but to add it back when we are done, we
43 # need the full path.
44 p = re.compile(r'meta-updater-qemux86-64\s*(\S*meta-updater-qemux86-64)\s')
45 m = p.search(result.output)
46 if m and m.lastindex > 0:
47 self.meta_qemu = m.group(1)
48 runCmd('bitbake-layers remove-layer meta-updater-qemux86-64')
49 else:
50 self.meta_qemu = None
51
52 self.append_config('MACHINE = "raspberrypi3"') 38 self.append_config('MACHINE = "raspberrypi3"')
53 self.append_config('SOTA_CLIENT_PROV = " aktualizr-shared-prov "') 39 self.append_config('SOTA_CLIENT_PROV = " aktualizr-shared-prov "')
54 40
55 def tearDownLocal(self): 41 def tearDownLocal(self):
56 if self.meta_qemu:
57 runCmd('bitbake-layers add-layer "%s"' % self.meta_qemu, ignore_status=True)
58 if self.meta_upd_rpi: 42 if self.meta_upd_rpi:
59 runCmd('bitbake-layers remove-layer "%s"' % self.meta_upd_rpi, ignore_status=True) 43 runCmd('bitbake-layers remove-layer "%s"' % self.meta_upd_rpi, ignore_status=True)
60 if self.meta_rpi: 44 if self.meta_rpi: