From patchwork Thu Mar 22 13:55:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Le Chi Thu X-Patchwork-Id: 7411 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 086BC23E29 for ; Thu, 22 Mar 2012 13:55:17 +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 BFED7A18421 for ; Thu, 22 Mar 2012 13:55:16 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so4145266iag.11 for ; Thu, 22 Mar 2012 06:55:16 -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=3SbtfHRg0O42qDBzLtiGq+V0bK9z+nEENyUzAQ2XXs0=; b=X6ETyj7BZnPlLwiDGJEVW5a4xh9RN0C+P3+g1ObAX2IljLBlwmW8wuywy/+aXTsyUw DkWB0jMSYnNNiVDN/+CpGth9O2E+gv61Wb3/6W+QMuuOsChZEXWU7KJD9VYAK4Efs2Cu Gk/9OJHHUBbn02HNkTkCQSmboDkhF8p56xoX4n1v21WFNGrFimiNy1m6AGs99mKiQYcy /6BsAE0AFoU+lsMVDurAMybLu2yYmZnTYsDWQ3nUx0LVxesfiu1SmPGwT12dmJfWPLhv JTZIxz5RZx4kpfxiiGe1Za5U/FQSTqTzj2kZ/IgBBIEf+AO7lN5e5AuB0cK2Mjyr0wOH aOaQ== Received: by 10.42.72.130 with SMTP id o2mr5546717icj.8.1332424516481; Thu, 22 Mar 2012 06:55:16 -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.231.203.79 with SMTP id fh15csp49232ibb; Thu, 22 Mar 2012 06:55:15 -0700 (PDT) Received: by 10.180.102.129 with SMTP id fo1mr5469787wib.6.1332424514748; Thu, 22 Mar 2012 06:55:14 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id f10si2266836wif.8.2012.03.22.06.55.14 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Mar 2012 06:55:14 -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 1SAiTy-0001P2-6Y for ; Thu, 22 Mar 2012 13:55:14 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 23FB2E025A for ; Thu, 22 Mar 2012 13:55:14 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-test X-Launchpad-Branch: ~linaro-validation/lava-test/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 136 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-test/trunk] Rev 136: Merged dashes-to-underscores Message-Id: <20120322135514.11713.22678.launchpad@ackee.canonical.com> Date: Thu, 22 Mar 2012 13:55:14 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14981"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: cbdfbf82bf2dfaf13afe2db3dffbab29e6145261 X-Gm-Message-State: ALoCoQmYhwfxrX1EMP1QhtZPx0VralGuXTU63r9XMhWCUTtJ6UnJF4fxNDrgc3WwJdVx3WjfFmMf Merge authors: Paul Larson Related merge proposals: https://code.launchpad.net/~pwlars/lava-test/dashes-to-underscores/+merge/98011 proposed by: Paul Larson (pwlars) review: Approve - Zygmunt Krynicki (zkrynicki) review: Resubmit - Paul Larson (pwlars) ------------------------------------------------------------ revno: 136 [merge] committer: Le Chi Thu le.chi.thu@linaro.org branch nick: trunk timestamp: Thu 2012-03-22 14:44:10 +0100 message: Merged dashes-to-underscores modified: lava_test/commands.py --- lp:lava-test https://code.launchpad.net/~linaro-validation/lava-test/trunk You are subscribed to branch lp:lava-test. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-test/trunk/+edit-subscription === modified file 'lava_test/commands.py' --- lava_test/commands.py 2012-03-08 19:17:05 +0000 +++ lava_test/commands.py 2012-03-19 19:24:05 +0000 @@ -152,7 +152,10 @@ try: test = self._test_loader[self.args.test_id] except KeyError: - raise LavaCommandError("There is no test with the specified ID") + try: + test = self._test_loader[self.args.test_id.replace('-', '_')] + except KeyError: + raise LavaCommandError("There is no test with the specified ID") return self.invoke_with_test(test)