From patchwork Wed Jan 23 04:43:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Doan X-Patchwork-Id: 14222 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id C0C6D23E57 for ; Wed, 23 Jan 2013 04:43:15 +0000 (UTC) Received: from mail-vb0-f46.google.com (mail-vb0-f46.google.com [209.85.212.46]) by fiordland.canonical.com (Postfix) with ESMTP id 79A89A18AA2 for ; Wed, 23 Jan 2013 04:43:15 +0000 (UTC) Received: by mail-vb0-f46.google.com with SMTP id b13so7224601vby.19 for ; Tue, 22 Jan 2013 20:43:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:content-type:mime-version:x-launchpad-project :x-launchpad-branch:x-launchpad-message-rationale :x-launchpad-branch-revision-number:x-launchpad-notification-type:to :from:subject:message-id:date:reply-to:sender:errors-to:precedence :x-generated-by:x-launchpad-hash:x-gm-message-state; bh=z/5GMnJisdb/7hsXlfxb9HskjsRedmPB94i095v9nfg=; b=Kv+KWSTXeU3u1S5mznvcd33zmVCt+AkrKdu5YxLdNWqiC/k3FjIHNdggk78yCpBK9V crjOHkgiRVzbzllIjThd8efLlBHkWYKeXuzqwBUOcisostJfnjspQNyVu8YcL2HWhbuH XtXeqFzm4VUXj6YL5IabceeIdC4H50wL40on8a3X/KCv3bH2ew1HLZ70U41gQYrbDeeh pdPO+f7F2xlIxmfUeXlUTcv8Xw4TDOmWGQ8HMtri7tRfDL/T62jTki3q92rsy9mT8dqW XUM54herhwF9SYvOLmpEmBK9w5yzjmqVRJXmabHzzAfntJMAGICDSUYMbCWVJN2gsedT S2Ow== X-Received: by 10.220.218.197 with SMTP id hr5mr27276vcb.8.1358916194856; Tue, 22 Jan 2013 20:43:14 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp285938veb; Tue, 22 Jan 2013 20:43:14 -0800 (PST) X-Received: by 10.180.33.44 with SMTP id o12mr24958483wii.28.1358916193853; Tue, 22 Jan 2013 20:43:13 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id hq1si6004494wib.9.2013.01.22.20.43.13 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 22 Jan 2013 20:43:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TxsB7-0003ZZ-9c for ; Wed, 23 Jan 2013 04:43:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 38BA0E00F4 for ; Wed, 23 Jan 2013 04:43:13 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dispatcher X-Launchpad-Branch: ~linaro-validation/lava-dispatcher/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 541 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 541: ensure device isn't power_on before calling power_on Message-Id: <20130123044313.27277.90979.launchpad@ackee.canonical.com> Date: Wed, 23 Jan 2013 04:43:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="16441"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: fcf4de4e96680e33d05799c08eb1023009912bc2 X-Gm-Message-State: ALoCoQke3jOgxvf9Oi+KgIrGdD9WIDO4uuLCh33cG17aHuyS2aUL00KIHrEG2D7zZZu08NoES5Qi Merge authors: Andy Doan (doanac) Related merge proposals: https://code.launchpad.net/~doanac/lava-dispatcher/fm-licensing-bug/+merge/144415 proposed by: Andy Doan (doanac) review: Approve - Michael Hudson-Doyle (mwhudson) ------------------------------------------------------------ revno: 541 [merge] committer: Andy Doan branch nick: dpatcher timestamp: Tue 2013-01-22 22:37:43 -0600 message: ensure device isn't power_on before calling power_on modified: lava_dispatcher/client/targetdevice.py --- lp:lava-dispatcher https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk You are subscribed to branch lp:lava-dispatcher. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription === modified file 'lava_dispatcher/client/targetdevice.py' --- lava_dispatcher/client/targetdevice.py 2012-11-21 22:07:45 +0000 +++ lava_dispatcher/client/targetdevice.py 2013-01-22 23:50:06 +0000 @@ -66,6 +66,9 @@ self.target_device.deploy_linaro_prebuilt(image) def _boot_linaro_image(self): + if self.proc: + logging.warning('device already powered on, powering off first') + self.target_device.power_off(self.proc) self.proc = self.target_device.power_on() def _boot_linaro_android_image(self):