From patchwork Fri Jul 26 15:03:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 18608 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0B77225DFF for ; Fri, 26 Jul 2013 15:11:35 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id cd7sf952664qab.1 for ; Fri, 26 Jul 2013 08:11:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to :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:x-original-sender :x-original-authentication-results:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=qeNg7U9ubA/fJlll0R26I2qMo/TDV0T+TNZRFRjyMds=; b=Ls2RuqnQvbForkWU1hjee5dp3Joj0l6x/q7IOXtduJKFM5IkGdjeBj6y7O5SV5eDEw Xx6AWKNV9UM3ltoscI5PpIPXYV5MhBZH6AXU5ogHdv4ibWg8vlvVWdo06F2oxkfl/0PX yIvjwpEAqyDYCCXCnGiQoPvLdOdlcmRCPhHcsllEFBgE3hykUZzYwNy4V/rWb+bQqws8 kU8LZ30fhRo0lLOMHasflKGiYzy3Ja8AD3nmb8v1ULNqA7Ha5O75MjX+KEEKgdK5yWPN e3fo4noELGMZXRZ6qSe7jeB8KuUpKpHbHTI8WEtvQHoP7QcOI7DpGBOf6a/afSKTDJd8 8ZqQ== X-Received: by 10.236.110.168 with SMTP id u28mr25138803yhg.32.1374851494674; Fri, 26 Jul 2013 08:11:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.98.67 with SMTP id eg3ls1248397qeb.28.gmail; Fri, 26 Jul 2013 08:11:34 -0700 (PDT) X-Received: by 10.58.76.130 with SMTP id k2mr20409014vew.24.1374851494491; Fri, 26 Jul 2013 08:11:34 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id aw7si14197696vec.50.2013.07.26.08.11.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Jul 2013 08:11:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id c13so1368189vea.7 for ; Fri, 26 Jul 2013 08:11:34 -0700 (PDT) X-Received: by 10.220.17.206 with SMTP id t14mr3552399vca.15.1374851494304; Fri, 26 Jul 2013 08:11:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.165.8 with SMTP id yu8csp28264veb; Fri, 26 Jul 2013 08:11:33 -0700 (PDT) X-Received: by 10.180.39.236 with SMTP id s12mr6080217wik.14.1374851493415; Fri, 26 Jul 2013 08:11:33 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id bq17si2058602wib.66.2013.07.26.08.11.32 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 26 Jul 2013 08:11:33 -0700 (PDT) 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; Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1V2jg2-0005lf-PH for ; Fri, 26 Jul 2013 15:11:31 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 4F059E1BE4 for ; Fri, 26 Jul 2013 15:03:24 +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: 643 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 643: Fix for 1205193 Message-Id: <20130726150324.22835.80614.launchpad@ackee.canonical.com> Date: Fri, 26 Jul 2013 15:03:24 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: list X-Generated-By: Launchpad (canonical.com); Revision="16700"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 369971fbb3be6ba90765b8ba6bef88f2e0e6c3f4 X-Gm-Message-State: ALoCoQl40gEQCMctLjKK2kbJuNR804R30QH2QGZc+9/OPodivqZ1L9U+lEc6FyIQUam4DBWmcuyv X-Original-Sender: noreply@launchpad.net X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Merge authors: Tyler Baker (tyler-baker) Related merge proposals: https://code.launchpad.net/~tyler-baker/lava-dispatcher/fix-for-bug-1205193/+merge/177092 proposed by: Tyler Baker (tyler-baker) review: Approve - Antonio Terceiro (terceiro) ------------------------------------------------------------ revno: 643 [merge] committer: Tyler Baker branch nick: lava-dispatcher timestamp: Fri 2013-07-26 08:02:01 -0700 message: Fix for 1205193 modified: lava_dispatcher/device/k3v2.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/k3v2.py' --- lava_dispatcher/device/k3v2.py 2013-07-16 16:03:23 +0000 +++ lava_dispatcher/device/k3v2.py 2013-07-26 06:11:41 +0000 @@ -37,6 +37,7 @@ def __init__(self, context, config): super(K3V2Target, self).__init__(context, config) + self.proc = None def deploy_android(self, boot, system, userdata): @@ -62,17 +63,17 @@ # So instead we must flash the boot image, and reboot. self.fastboot.enter() self.fastboot('reboot') - proc = connect_to_serial(self.context) - proc.expect(self.context.device_config.master_str, timeout=300) + if self.proc is None: + self.proc = connect_to_serial(self.context) + self.proc.expect(self.context.device_config.master_str, timeout=300) - # The k3v2 does not yet have adb support, so we do not wait for adb. - #self._adb('wait-for-device') + self._adb('wait-for-device') self._booted = True - proc.sendline("") # required to put the adb shell in a reasonable state - proc.sendline("export PS1='%s'" % self.deployment_data['TESTER_PS1']) - self._runner = self._get_runner(proc) + self.proc.sendline("") # required to put the adb shell in a reasonable state + self.proc.sendline("export PS1='%s'" % self.deployment_data['TESTER_PS1']) + self._runner = self._get_runner(self.proc) - return proc + return self.proc target_class = K3V2Target