[oe-commits] [openembedded-core] 48/122: masterimage.py: fix stop()

git at git.openembedded.org git at git.openembedded.org
Mon Dec 4 17:25:26 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch rocko
in repository openembedded-core.

commit 1871d61b75f2fbc0df1368960b7746371fd875f5
Author: Erik Botö <erik.boto at pelagicore.com>
AuthorDate: Mon Nov 6 10:13:04 2017 -0800

    masterimage.py: fix stop()
    
    The stop() function is called in the context of the masterimage,
    so self.master should be used instead of self.connection which is
    undefined at that time.
    
    [YOCTO #11524]
    
    Signed-off-by: Erik Botö <erik.boto at pelagicore.com>
    Signed-off-by: Stephano Cetola <stephano.cetola at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Armin Kuster <akuster at mvista.com>
---
 meta/lib/oeqa/controllers/masterimage.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/controllers/masterimage.py b/meta/lib/oeqa/controllers/masterimage.py
index fe90967..e2ff3f1 100644
--- a/meta/lib/oeqa/controllers/masterimage.py
+++ b/meta/lib/oeqa/controllers/masterimage.py
@@ -156,7 +156,7 @@ class MasterImageHardwareTarget(oeqa.targetcontrol.BaseTarget, metaclass=ABCMeta
 
     def stop(self):
         bb.plain("%s - reboot/powercycle target" % self.pn)
-        self.power_cycle(self.connection)
+        self.power_cycle(self.master)
 
 
 class SystemdbootTarget(MasterImageHardwareTarget):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list