From patchwork Mon Feb 18 01:24:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael-Doyle Hudson X-Patchwork-Id: 14942 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 1275123FD5 for ; Mon, 18 Feb 2013 01:24:16 +0000 (UTC) Received: from mail-vb0-f42.google.com (mail-vb0-f42.google.com [209.85.212.42]) by fiordland.canonical.com (Postfix) with ESMTP id B6471A18393 for ; Mon, 18 Feb 2013 01:24:15 +0000 (UTC) Received: by mail-vb0-f42.google.com with SMTP id ff1so155499vbb.1 for ; Sun, 17 Feb 2013 17:24: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=OPNaV6P2eM0fFuU72hUo7+EY1giC48WbQvCk2PSkQdQ=; b=aXLJXDMZJu7urOVr2CijsEWs9XMO2cHGqyq+oXxZZ53grTWhVRouT1BfJDl0q/LLIy kjs9krG7cb5THFvk9OVPEm6Nempotbpnxa8FgV6QI79fiAKQWA6umCjgQqHH5rfxNObE woSkFfKlDAb+P2Hd9ixKBy2uZxXQPdCuSsxbdCd7jdQGCDANoKCVSlbKejWG++Axt+jx DVs47usV8y0S2+40pFLxQPYwat+sEV9v++9iTj405F6ioq0qkkunPOJLxH9jcDYYvOZC 6IlE68jpt6PV3Q5Zx3dPEEA7bU/xT0+ldB9evoj/hJoDDIYQWwjPs7OxK7ehNTL26v1k nkug== X-Received: by 10.58.32.10 with SMTP id e10mr13421313vei.59.1361150655184; Sun, 17 Feb 2013 17:24:15 -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 st5csp66878veb; Sun, 17 Feb 2013 17:24:14 -0800 (PST) X-Received: by 10.180.97.233 with SMTP id ed9mr16920209wib.32.1361150653871; Sun, 17 Feb 2013 17:24:13 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id ey5si3370832wid.16.2013.02.17.17.24.13 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 17 Feb 2013 17:24: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 1U7FSn-000790-59 for ; Mon, 18 Feb 2013 01:24:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 17A05E04D7 for ; Mon, 18 Feb 2013 01:24: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: 561 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 561: experimental fix for "boot_linaro_android_image before lava_test_shell" problem Message-Id: <20130218012413.31344.48927.launchpad@ackee.canonical.com> Date: Mon, 18 Feb 2013 01:24: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="16491"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 2653316b06da921c19e99c9bac66c808d52bbf2d X-Gm-Message-State: ALoCoQkBgQUbzfDf5VnxSzg7ywdeuejrTJ0slTABjFj9u3Q68iIlT4ea3KUsBdiq9koWHnpPyC3E ------------------------------------------------------------ revno: 561 committer: Michael Hudson-Doyle branch nick: trunk timestamp: Mon 2013-02-18 14:23:23 +1300 message: experimental fix for "boot_linaro_android_image before lava_test_shell" problem modified: lava_dispatcher/device/fastmodel.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/device/fastmodel.py' --- lava_dispatcher/device/fastmodel.py 2013-01-23 00:35:28 +0000 +++ lava_dispatcher/device/fastmodel.py 2013-02-18 01:23:23 +0000 @@ -172,6 +172,7 @@ super(FastModelTarget, self).power_off(proc) if self._sim_proc is not None: self._sim_proc.close() + self._sim_proc = None def _create_rtsm_ostream(self, ofile): """the RTSM binary uses the windows code page(cp1252), but the @@ -188,6 +189,10 @@ DrainConsoleOutput(proc=self._sim_proc).start() def power_on(self): + if self._sim_proc is not None: + logging.warning("device was still on, shutting down") + self.power_off() + self._fix_perms() options = boot_options.as_string(self, join_pattern=' -C %s=%s')