From patchwork Mon Apr 8 03:00:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Senthil Kumaran X-Patchwork-Id: 15960 Return-Path: X-Original-To: linaro@staging.patches.linaro.org Delivered-To: linaro@staging.patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6BD7B27752 for ; Mon, 8 Apr 2013 03:00:35 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id b14sf7333491qcs.0 for ; Sun, 07 Apr 2013 20:00:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-beenthere:x-received:received-spf:x-received :x-forwarded-to:x-forwarded-for:delivered-to:x-received:received-spf :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:x-original-sender :x-original-authentication-results:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=45G9Gi5xRZHVHp8T9SgsE7NGTxO5L0lBf5JpM6ZiqYU=; b=pOfuWz7wOphQLxlvWIqwKxcFmfQF62JWvgALW0lfI5dvYUyCvvSqqTyRtvZjpcyrpF dnqMK+/TaTcvw2Xd5TiheZUtCZAo3Au4nHDjEyuF5KIpThH5rFUoXBEuCYb/9vV3Fn+5 Sn0TZGP5bYkmNf3YUV45oGZD33WtXdKvTUycBpeWXxLdDfghZ/ianFqSEc4IT8qe0pom ZsHPMw+z6a23vsiCK+VmKBbWRVjFGzk3gXmD03grNBrqBlhfDazAGEvqDQsU3dcDTjk1 gX+N9h9n9WljlDHBZEFI0ydPdz8uV9eRZtcAKour/vChDwXnr0I32wWul61ME85cRzDJ mFvg== X-Received: by 10.224.157.1 with SMTP id z1mr4957291qaw.8.1365390021503; Sun, 07 Apr 2013 20:00:21 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.110.200 with SMTP id ic8ls2668888qeb.74.gmail; Sun, 07 Apr 2013 20:00:21 -0700 (PDT) X-Received: by 10.220.223.202 with SMTP id il10mr14692555vcb.4.1365390021292; Sun, 07 Apr 2013 20:00:21 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id j11si17276454vcw.51.2013.04.07.20.00.21 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 07 Apr 2013 20:00:21 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id hf12so4497106vcb.20 for ; Sun, 07 Apr 2013 20:00:21 -0700 (PDT) X-Received: by 10.52.65.147 with SMTP id x19mr12490194vds.27.1365390021197; Sun, 07 Apr 2013 20:00:21 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.85.136 with SMTP id h8csp677vez; Sun, 7 Apr 2013 20:00:20 -0700 (PDT) X-Received: by 10.180.76.84 with SMTP id i20mr10220560wiw.9.1365390020101; Sun, 07 Apr 2013 20:00:20 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id gl5si4178694wic.56.2013.04.07.20.00.19 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 07 Apr 2013 20:00:20 -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; Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1UP2Jf-000071-GW for ; Mon, 08 Apr 2013 03:00:19 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 69F32E04FB for ; Mon, 8 Apr 2013 03:00:19 +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: 577 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 577: Convert version to a string if found in testdef metadata. Message-Id: <20130408030019.970.2814.launchpad@ackee.canonical.com> Date: Mon, 08 Apr 2013 03:00:19 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: list X-Generated-By: Launchpad (canonical.com); Revision="16550"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 7c23cf6db72c5eeed4070ea0094e5d0a02ff10f6 X-Gm-Message-State: ALoCoQlcpgSoRnPemArwaycTTXhbBjq/3jrHeytGatEolsCO2BZkvVzAoFtpDtjjW2WTRzE+cJV+ X-Original-Sender: noreply@launchpad.net X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , ------------------------------------------------------------ revno: 577 committer: Senthil Kumaran branch nick: trunk timestamp: Mon 2013-04-08 01:13:05 +0530 message: Convert version to a string if found in testdef metadata. modified: lava_dispatcher/actions/lava_test_shell.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_shell.py' --- lava_dispatcher/actions/lava_test_shell.py 2013-04-07 10:53:18 +0000 +++ lava_dispatcher/actions/lava_test_shell.py 2013-04-07 19:43:05 +0000 @@ -204,9 +204,10 @@ def _get_testdef_info(testdef): metadata = {'os': '', 'devices': '', 'environment': ''} - metadata['description'] = testdef['metadata'].get('description', None) - metadata['format'] = testdef['metadata'].get('format', None) - metadata['version'] = testdef['metadata'].get('version', None) + metadata['description'] = testdef['metadata'].get('description') + metadata['format'] = testdef['metadata'].get('format') + version = testdef['metadata'].get('version') + metadata['version'] = version and str(version) or version # Convert list to comma separated string. if testdef['metadata'].get('os'):