From patchwork Thu Mar 8 21:00:16 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: 7179 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 1CC0023E80 for ; Thu, 8 Mar 2012 21:00:21 +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 CA24CA18667 for ; Thu, 8 Mar 2012 21:00:20 +0000 (UTC) Received: by iage36 with SMTP id e36so1627492iag.11 for ; Thu, 08 Mar 2012 13:00:20 -0800 (PST) Received: by 10.50.42.132 with SMTP id o4mr8849294igl.58.1331240420181; Thu, 08 Mar 2012 13:00:20 -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 k18csp19134ibg; Thu, 8 Mar 2012 13:00:18 -0800 (PST) Received: by 10.180.101.136 with SMTP id fg8mr37688922wib.4.1331240417986; Thu, 08 Mar 2012 13:00:17 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id n43si4219624wed.2.2012.03.08.13.00.16 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Mar 2012 13:00:17 -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 1S5kRc-0002J0-KM for ; Thu, 08 Mar 2012 21:00:16 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 87A00E032C for ; Thu, 8 Mar 2012 21:00:16 +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: 241 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 241: allow device_option to take an extra argument, as used in hard_reset (oops) Message-Id: <20120308210016.18967.78642.launchpad@ackee.canonical.com> Date: Thu, 08 Mar 2012 21:00:16 -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: 50db6a168c53d16ec247565e314af2040c3ab4e9 X-Gm-Message-State: ALoCoQlEaeWBz74b0xu5Ryvzv8a089gnNByWTVtTQNDdOrXz3i7/JnoElNNf0wNgiDrfrRKjcsBX ------------------------------------------------------------ revno: 241 committer: Michael Hudson-Doyle branch nick: trunk timestamp: Fri 2012-03-09 09:58:27 +1300 message: allow device_option to take an extra argument, as used in hard_reset (oops) modified: lava_dispatcher/client/base.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/client/base.py' --- lava_dispatcher/client/base.py 2012-02-29 02:17:16 +0000 +++ lava_dispatcher/client/base.py 2012-03-08 20:58:27 +0000 @@ -276,8 +276,8 @@ self.sio = SerialIO(sys.stdout) self.proc = None - def device_option(self, option_name): - return self.config.get(option_name) + def device_option(self, option_name, *extra): + return self.config.get(option_name, *extra) def device_option_int(self, option_name): return self.config.getint(option_name)