From patchwork Wed Oct 17 14:23:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Doan X-Patchwork-Id: 12315 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 2C0631D5170 for ; Wed, 17 Oct 2012 14:23:16 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id C0C55A1946E for ; Wed, 17 Oct 2012 14:23:15 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so11455649iej.11 for ; Wed, 17 Oct 2012 07:23:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to: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=mmbJrz4lP+uHC0gJf2k6em8vFQwvos95+NbQEHqgpyQ=; b=W/WLb6wfnrcBZLaV7JbCD7SBvnQmYMAG7fTd5g+w6+TsBNhtJac4kzEo3gEdoCTnoA DoXT0NKgaiDeAKYkcpwmMVBcqgBDM2chjIEsj50uR4WNl8rWHdS5YlE2lbl92g36Spyl gV4FIEqb3MeOBcvlalRBviLYRFBnrEUZ5widClJqpBPOlRfOQ5Ib/22DzDpZcwDIxuzA 16E0D/MH0HZ5bSRHy9utpMTRfOpNsGqrVIA4Gr1HHXTZzrR3aUvuLchJaGiEhEcCSqDG Oxs07KlTvfMgd/TNbyw59DSdOzG80Tbui6Ip2nhBQREniU7QTv0uSWx1wqez5s9zT1XN 0xTw== Received: by 10.43.7.132 with SMTP id oo4mr14592398icb.6.1350483795109; Wed, 17 Oct 2012 07:23:15 -0700 (PDT) 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.50.67.148 with SMTP id n20csp904017igt; Wed, 17 Oct 2012 07:23:14 -0700 (PDT) Received: by 10.216.136.23 with SMTP id v23mr10862572wei.45.1350483793702; Wed, 17 Oct 2012 07:23:13 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id o8si24279302wea.75.2012.10.17.07.23.13 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 17 Oct 2012 07:23:13 -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; 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 1TOUWf-0005e9-2G for ; Wed, 17 Oct 2012 14:23:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 043D8E05E4 for ; Wed, 17 Oct 2012 14:23: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: 403 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 403: regression in fastmodel android from latest target refactor Message-Id: <20121017142313.5825.94871.launchpad@ackee.canonical.com> Date: Wed, 17 Oct 2012 14:23: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="16152"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: c4e12867c039f522f6e83d038578db584ab66c4a X-Gm-Message-State: ALoCoQn0aJ8EdsI6WXoiiANwaxUfQ+5UcaIzQZqm1rGHBSqufMsSqNVB+FanoUjCGPPXzClw+Jkb ------------------------------------------------------------ revno: 403 committer: Andy Doan branch nick: trunk timestamp: Tue 2012-10-16 22:45:38 -0500 message: regression in fastmodel android from latest target refactor Somehow I missed the ping alias for fastmodels. I also re-did how we write this file. The logging_system way was a bit overkill 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 2012-10-14 22:11:42 +0000 +++ lava_dispatcher/device/fastmodel.py 2012-10-17 03:45:38 +0000 @@ -84,10 +84,13 @@ logging_system('sudo rm -f %s' % wallpaper) with image_partition_mounted(self._sd_image, self.SYS_PARTITION) as d: - #make sure PS1 is what we expect it to be - logging_system( - 'sudo sh -c \'echo "PS1=%s">> %s/etc/mkshrc\'' % - self.ANDROID_TESTER_PS1, d) + with open('%s/etc/mkshrc' % d, 'a') as f: + f.write('\n# LAVA CUSTOMIZATIONS\n') + #make sure PS1 is what we expect it to be + f.write('PS1="%s"\n' % self.ANDROID_TESTER_PS1) + # fast model usermode networking does not support ping + f.write('alias ping="echo LAVA-ping override 1 received"\n') + self.deployment_data = Target.android_deployment_data def _copy_axf(self, partno, fname):