From patchwork Tue Dec 6 03:21:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael-Doyle Hudson X-Patchwork-Id: 5499 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 028752401B for ; Tue, 6 Dec 2011 03:21:18 +0000 (UTC) Received: from mail-lpp01m010-f52.google.com (mail-lpp01m010-f52.google.com [209.85.215.52]) by fiordland.canonical.com (Postfix) with ESMTP id 2BC1CA182D8 for ; Tue, 6 Dec 2011 03:21:16 +0000 (UTC) Received: by lagm6 with SMTP id m6so708050lag.11 for ; Mon, 05 Dec 2011 19:21:15 -0800 (PST) Received: by 10.152.106.115 with SMTP id gt19mr7809569lab.27.1323141675722; Mon, 05 Dec 2011 19:21: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.152.41.198 with SMTP id h6cs294609lal; Mon, 5 Dec 2011 19:21:15 -0800 (PST) Received: by 10.213.105.81 with SMTP id s17mr1734287ebo.36.1323141673488; Mon, 05 Dec 2011 19:21:13 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id j11si6661209eej.160.2011.12.05.19.21.13 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Dec 2011 19:21: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 1RXlaj-0008HT-1z for ; Tue, 06 Dec 2011 03:21:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 0221DE0302 for ; Tue, 6 Dec 2011 03:21: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: 172 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 172: use the context's config rather than reading it again in _install_lava_test Message-Id: <20111206032113.28901.69771.launchpad@ackee.canonical.com> Date: Tue, 06 Dec 2011 03:21: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="14435"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: ed9d7749f948f2649b30e69b7b45bc84909bcfe3 ------------------------------------------------------------ revno: 172 committer: Michael Hudson-Doyle branch nick: trunk timestamp: Tue 2011-12-06 16:19:42 +1300 message: use the context's config rather than reading it again in _install_lava_test 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 2011-11-24 03:00:54 +0000 +++ lava_dispatcher/actions/lava-test.py 2011-12-06 03:19:42 +0000 @@ -26,7 +26,6 @@ from lava_dispatcher.actions import BaseAction from lava_dispatcher.client.base import OperationFailed, CriticalError -from lava_dispatcher.config import get_config def _install_lava_test(client, session): @@ -38,7 +37,7 @@ session.run(cmd, timeout=2400) session.run("apt-get -y install python-pip") - dispatcher_config = get_config("lava-dispatcher") + dispatcher_config = client.context.config lava_test_url = dispatcher_config.get("LAVA_TEST_URL") logging.debug("Installing %s with pip" % lava_test_url) session.run('pip install -e ' + lava_test_url)