From patchwork Fri Mar 9 00:59:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael-Doyle Hudson X-Patchwork-Id: 7180 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 75E6223E74 for ; Fri, 9 Mar 2012 00:59:13 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 1CC9AA186A6 for ; Fri, 9 Mar 2012 00:59:13 +0000 (UTC) Received: by iage36 with SMTP id e36so1996969iag.11 for ; Thu, 08 Mar 2012 16:59:12 -0800 (PST) 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=UgWsei5GtU0YJwA6JVtj1/FCYKseCX7Kgs4XAsBEkmw=; b=gpUTgtloWU1fwz/T6feZzmnLVKTGW7bO6eJ+FGVHRlD3ylopw+3Y3RDaSOXqRi+dkn lLIuyBHyyyCofg33csPmsKRU2GQtYo9gbJFA3nPuztllh132RU/gxBGPpscSXUMPpIxX rNZSGnkE82NmtotQUeovIrrz2kkeH7KAwRnNPHnHuVIAF1XKejO9wnqOhzMt5wyh9SxV 6YHxlRMZmOTzLWhC2KYnPmDdLEC7++BKnFG5HRZd/miSL8yz0tcsp28KEHYDmHZqVdJt jDLGXnERS8RnUvIs4HFLY24n6+Blvcs2gujy4Bls8hPVclWw7a6c+Q5uJhwooW7A2yaG /QYg== Received: by 10.42.145.72 with SMTP id e8mr406096icv.0.1331254752550; Thu, 08 Mar 2012 16:59:12 -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.231.53.18 with SMTP id k18csp22056ibg; Thu, 8 Mar 2012 16:59:12 -0800 (PST) Received: by 10.180.100.196 with SMTP id fa4mr415359wib.0.1331254751456; Thu, 08 Mar 2012 16:59:11 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id i44si4943407wed.118.2012.03.08.16.59.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Mar 2012 16:59:11 -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 1S5oAo-0007aY-U2 for ; Fri, 09 Mar 2012 00:59:10 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id D5E80E1438 for ; Fri, 9 Mar 2012 00:59:10 +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: 242 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 242: pass --force-yes to apt-get & call lava-test reset after installing it Message-Id: <20120309005910.27520.58137.launchpad@ackee.canonical.com> Date: Fri, 09 Mar 2012 00:59:10 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14914"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 08c8504f7f5f991db6aaecdb33398fc3118be512 X-Gm-Message-State: ALoCoQlkIm1lXzwR9tMJnR3QlDWJhoRWA3Eaeni/jboDdr9VrCWgMR4Vur6SptuePxuI8DqH6dsv Merge authors: Le Chi Thu le.chi.thu@linaro.org Related merge proposals: https://code.launchpad.net/~le-chi-thu/lava-dispatcher/lava-test-deployment-fixes/+merge/96670 proposed by: Le Chi Thu (le-chi-thu) review: Approve - Michael Hudson-Doyle (mwhudson) ------------------------------------------------------------ revno: 242 [merge] committer: Michael Hudson-Doyle branch nick: trunk timestamp: Fri 2012-03-09 13:57:29 +1300 message: pass --force-yes to apt-get & call lava-test reset after installing it modified: lava_dispatcher/actions/lava-test.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/actions/lava-test.py' --- lava_dispatcher/actions/lava-test.py 2012-02-24 00:34:24 +0000 +++ lava_dispatcher/actions/lava-test.py 2012-03-08 21:52:44 +0000 @@ -31,10 +31,10 @@ #install bazaar in tester image session.run('apt-get update') #Install necessary packages for build lava-test - cmd = ('apt-get -y install ' + cmd = ('apt-get -y --force-yes install ' 'bzr usbutils python-apt python-setuptools python-simplejson lsb-release') session.run(cmd, timeout=2400) - session.run("apt-get -y install python-pip") + session.run("apt-get -y --force-yes install python-pip") dispatcher_config = client.context.config lava_test_url = dispatcher_config.get("LAVA_TEST_URL") @@ -42,10 +42,10 @@ session.run('pip install -e ' + lava_test_url) #Test if lava-test installed - rc = session.run('lava-test help', timeout=60) - if rc != 0: - raise CriticalError("lava-test deployment failed") + session.run('which lava-test', timeout=60) + # cleanup the lava-test - old results, cached files... + session.run('lava-test reset', timeout=60) class cmd_lava_test_run(BaseAction):