summaryrefslogtreecommitdiffstats
path: root/meta-yocto-bsp/lib/oeqa/controllers
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2022-02-22 16:58:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-25 12:41:48 +0000
commit18f40dfdfd81d0a08ad31fbe33815477190fa1b6 (patch)
tree793009dc086dffd721d91c6d174899945c221b0d /meta-yocto-bsp/lib/oeqa/controllers
parentd418a495bbdee395c8c38191847a19c3256c2a72 (diff)
downloadpoky-18f40dfdfd81d0a08ad31fbe33815477190fa1b6.tar.gz
oeqa/controllers: update for MasterImageHardwareTarget->Controller...
oe-core f87b328 renamed MasterImageHardwareTarget to ControllerImageHardwareTarget, but these files were left out of the updates. (From meta-yocto rev: 8e578551e14e90da20701bb8a9598e2bb25f74e6) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-yocto-bsp/lib/oeqa/controllers')
-rw-r--r--meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py19
-rw-r--r--meta-yocto-bsp/lib/oeqa/controllers/edgeroutertarget.py17
-rw-r--r--meta-yocto-bsp/lib/oeqa/controllers/grubtarget.py17
3 files changed, 25 insertions, 28 deletions
diff --git a/meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py b/meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py
index 0f1aeb398f..7af3e1dac7 100644
--- a/meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py
+++ b/meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py
@@ -24,11 +24,10 @@ import subprocess
24import sys 24import sys
25import pexpect 25import pexpect
26 26
27import oeqa.utils.sshcontrol as sshcontrol 27from oeqa.controllers.controllerimage import ControllerImageHardwareTarget
28from oeqa.controllers.masterimage import MasterImageHardwareTarget
29 28
30 29
31class BeagleBoneTarget(MasterImageHardwareTarget): 30class BeagleBoneTarget(ControllerImageHardwareTarget):
32 31
33 dtbs = {'uImage-am335x-bone.dtb': 'am335x-bone.dtb', 'uImage-am335x-boneblack.dtb': 'am335x-boneblack.dtb'} 32 dtbs = {'uImage-am335x-bone.dtb': 'am335x-bone.dtb', 'uImage-am335x-boneblack.dtb': 'am335x-boneblack.dtb'}
34 33
@@ -57,21 +56,21 @@ class BeagleBoneTarget(MasterImageHardwareTarget):
57 56
58 57
59 def _deploy(self): 58 def _deploy(self):
60 self.master.run("umount /boot; umount /mnt/testrootfs;") 59 self.controller.run("umount /boot; umount /mnt/testrootfs;")
61 self.master.ignore_status = False 60 self.controller.ignore_status = False
62 # Kernel and dtb files may not be in the image, so copy them just in case 61 # Kernel and dtb files may not be in the image, so copy them just in case
63 self.master.copy_to(self.kernel, "~/test-kernel") 62 self.controller.copy_to(self.kernel, "~/test-kernel")
64 kernelpath = os.path.dirname(self.kernel) 63 kernelpath = os.path.dirname(self.kernel)
65 for dtborig, dtbfn in self.dtbs.iteritems(): 64 for dtborig, dtbfn in self.dtbs.iteritems():
66 dtbfile = os.path.join(kernelpath, dtborig) 65 dtbfile = os.path.join(kernelpath, dtborig)
67 if os.path.exists(dtbfile): 66 if os.path.exists(dtbfile):
68 self.master.copy_to(dtbfile, "~/%s" % dtbfn) 67 self.controller.copy_to(dtbfile, "~/%s" % dtbfn)
69 self.master.copy_to(self.rootfs, "~/test-rootfs.%s" % self.image_fstype) 68 self.controller.copy_to(self.rootfs, "~/test-rootfs.%s" % self.image_fstype)
70 for cmd in self.deploy_cmds: 69 for cmd in self.deploy_cmds:
71 self.master.run(cmd) 70 self.controller.run(cmd)
72 71
73 def _start(self, params=None): 72 def _start(self, params=None):
74 self.power_cycle(self.master) 73 self.power_cycle(self.controller)
75 try: 74 try:
76 serialconn = pexpect.spawn(self.serialcontrol_cmd, env=self.origenv, logfile=sys.stdout) 75 serialconn = pexpect.spawn(self.serialcontrol_cmd, env=self.origenv, logfile=sys.stdout)
77 # We'd wait for "U-Boot" here but sometimes we connect too late on BeagleBone white to see it 76 # We'd wait for "U-Boot" here but sometimes we connect too late on BeagleBone white to see it
diff --git a/meta-yocto-bsp/lib/oeqa/controllers/edgeroutertarget.py b/meta-yocto-bsp/lib/oeqa/controllers/edgeroutertarget.py
index 9c47b5b044..e31670db48 100644
--- a/meta-yocto-bsp/lib/oeqa/controllers/edgeroutertarget.py
+++ b/meta-yocto-bsp/lib/oeqa/controllers/edgeroutertarget.py
@@ -35,11 +35,10 @@ import subprocess
35import sys 35import sys
36import pexpect 36import pexpect
37 37
38import oeqa.utils.sshcontrol as sshcontrol 38from oeqa.controllers.controllerimage import ControllerImageHardwareTarget
39from oeqa.controllers.masterimage import MasterImageHardwareTarget
40 39
41 40
42class EdgeRouterTarget(MasterImageHardwareTarget): 41class EdgeRouterTarget(ControllerImageHardwareTarget):
43 42
44 def __init__(self, d): 43 def __init__(self, d):
45 super(EdgeRouterTarget, self).__init__(d) 44 super(EdgeRouterTarget, self).__init__(d)
@@ -58,15 +57,15 @@ class EdgeRouterTarget(MasterImageHardwareTarget):
58 57
59 58
60 def _deploy(self): 59 def _deploy(self):
61 self.master.run("umount /mnt/testrootfs;") 60 self.controller.run("umount /mnt/testrootfs;")
62 self.master.ignore_status = False 61 self.controller.ignore_status = False
63 self.master.copy_to(self.kernel, "~/test-kernel") 62 self.controller.copy_to(self.kernel, "~/test-kernel")
64 self.master.copy_to(self.rootfs, "~/test-rootfs.%s" % self.image_fstype) 63 self.controller.copy_to(self.rootfs, "~/test-rootfs.%s" % self.image_fstype)
65 for cmd in self.deploy_cmds: 64 for cmd in self.deploy_cmds:
66 self.master.run(cmd) 65 self.controller.run(cmd)
67 66
68 def _start(self, params=None): 67 def _start(self, params=None):
69 self.power_cycle(self.master) 68 self.power_cycle(self.controller)
70 try: 69 try:
71 serialconn = pexpect.spawn(self.serialcontrol_cmd, env=self.origenv, logfile=sys.stdout) 70 serialconn = pexpect.spawn(self.serialcontrol_cmd, env=self.origenv, logfile=sys.stdout)
72 serialconn.expect("U-Boot") 71 serialconn.expect("U-Boot")
diff --git a/meta-yocto-bsp/lib/oeqa/controllers/grubtarget.py b/meta-yocto-bsp/lib/oeqa/controllers/grubtarget.py
index 7bc807d2bc..c3a98979c5 100644
--- a/meta-yocto-bsp/lib/oeqa/controllers/grubtarget.py
+++ b/meta-yocto-bsp/lib/oeqa/controllers/grubtarget.py
@@ -19,10 +19,9 @@ import subprocess
19import sys 19import sys
20import pexpect 20import pexpect
21 21
22import oeqa.utils.sshcontrol as sshcontrol 22from oeqa.controllers.controllerimage import ControllerImageHardwareTarget
23from oeqa.controllers.masterimage import MasterImageHardwareTarget
24 23
25class GrubTarget(MasterImageHardwareTarget): 24class GrubTarget(ControllerImageHardwareTarget):
26 25
27 def __init__(self, d): 26 def __init__(self, d):
28 super(GrubTarget, self).__init__(d) 27 super(GrubTarget, self).__init__(d)
@@ -41,16 +40,16 @@ class GrubTarget(MasterImageHardwareTarget):
41 40
42 def _deploy(self): 41 def _deploy(self):
43 # make sure these aren't mounted 42 # make sure these aren't mounted
44 self.master.run("umount /boot; umount /mnt/testrootfs;") 43 self.controller.run("umount /boot; umount /mnt/testrootfs;")
45 self.master.ignore_status = False 44 self.controller.ignore_status = False
46 # Kernel files may not be in the image, so copy them just in case 45 # Kernel files may not be in the image, so copy them just in case
47 self.master.copy_to(self.rootfs, "~/test-rootfs." + self.image_fstype) 46 self.controller.copy_to(self.rootfs, "~/test-rootfs." + self.image_fstype)
48 self.master.copy_to(self.kernel, "~/test-kernel") 47 self.controller.copy_to(self.kernel, "~/test-kernel")
49 for cmd in self.deploy_cmds: 48 for cmd in self.deploy_cmds:
50 self.master.run(cmd) 49 self.controller.run(cmd)
51 50
52 def _start(self, params=None): 51 def _start(self, params=None):
53 self.power_cycle(self.master) 52 self.power_cycle(self.controller)
54 try: 53 try:
55 serialconn = pexpect.spawn(self.serialcontrol_cmd, env=self.origenv, logfile=sys.stdout) 54 serialconn = pexpect.spawn(self.serialcontrol_cmd, env=self.origenv, logfile=sys.stdout)
56 serialconn.expect("GNU GRUB version 2.00") 55 serialconn.expect("GNU GRUB version 2.00")