Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mail.openembedded.org (Postfix) with ESMTP id 739B678094 for ; Tue, 20 Jun 2017 23:11:42 +0000 (UTC) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jun 2017 16:11:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,366,1493708400"; d="scan'208";a="1184998609" Received: from unknown (HELO localhost.localdomain) ([10.252.131.195]) by fmsmga002.fm.intel.com with ESMTP; 20 Jun 2017 16:11:33 -0700 From: Stephano Cetola To: openembedded-core@lists.openembedded.org Date: Tue, 20 Jun 2017 16:10:27 -0700 Message-Id: <20170620231029.90760-3-stephano.cetola@linux.intel.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170620231029.90760-1-stephano.cetola@linux.intel.com> References: <20170620231029.90760-1-stephano.cetola@linux.intel.com> MIME-Version: 1.0 Subject: [PATCH v4 2/4] masterimage.py: fix stop() X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2017 23:11:43 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Erik Botö 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ö --- 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 07418fcda1..6aa7fba6eb 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): -- 2.13.1