summaryrefslogtreecommitdiffstats
path: root/lib/oeqa/selftest/cases/updater_raspberrypi.py
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2019-11-26 10:01:10 +0100
committerGitHub <noreply@github.com>2019-11-26 10:01:10 +0100
commit700ec83a1b5a177829bc52af43134c39a74ee865 (patch)
tree5c2fc3d48e903006f8e06f2b5f912f54c0567ad7 /lib/oeqa/selftest/cases/updater_raspberrypi.py
parent8d340b0cc95bf98e844bd550bd779ae4fe772d9f (diff)
parentd0e40bd02a5eefc753e9a51b5904283fc7d626ce (diff)
downloadmeta-updater-700ec83a1b5a177829bc52af43134c39a74ee865.tar.gz
Merge pull request #633 from advancedtelematic/feat/warrior/2019.10
Feat/warrior/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 8efc941..fae631e 100644
--- a/lib/oeqa/selftest/cases/updater_raspberrypi.py
+++ b/lib/oeqa/selftest/cases/updater_raspberrypi.py
@@ -29,26 +29,10 @@ class RpiTests(OESelftestTestCase):
29 else: 29 else:
30 self.meta_upd_rpi = None 30 self.meta_upd_rpi = None
31 31
32 # This is trickier that I would've thought. The fundamental problem is
33 # that the qemu layer changes the u-boot file extension to .rom, but
34 # raspberrypi still expects .bin. To prevent this, the qemu layer must
35 # be temporarily removed if it is present. It has to be removed by name
36 # without the complete path, but to add it back when we are done, we
37 # need the full path.
38 p = re.compile(r'meta-updater-qemux86-64\s*(\S*meta-updater-qemux86-64)\s')
39 m = p.search(result.output)
40 if m and m.lastindex > 0:
41 self.meta_qemu = m.group(1)
42 runCmd('bitbake-layers remove-layer meta-updater-qemux86-64')
43 else:
44 self.meta_qemu = None
45
46 self.append_config('MACHINE = "raspberrypi3"') 32 self.append_config('MACHINE = "raspberrypi3"')
47 self.append_config('SOTA_CLIENT_PROV = " aktualizr-shared-prov "') 33 self.append_config('SOTA_CLIENT_PROV = " aktualizr-shared-prov "')
48 34
49 def tearDownLocal(self): 35 def tearDownLocal(self):
50 if self.meta_qemu:
51 runCmd('bitbake-layers add-layer "%s"' % self.meta_qemu, ignore_status=True)
52 if self.meta_upd_rpi: 36 if self.meta_upd_rpi:
53 runCmd('bitbake-layers remove-layer "%s"' % self.meta_upd_rpi, ignore_status=True) 37 runCmd('bitbake-layers remove-layer "%s"' % self.meta_upd_rpi, ignore_status=True)
54 if self.meta_rpi: 38 if self.meta_rpi: