From patchwork Mon Apr 8 05: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: 15961 Return-Path: X-Original-To: linaro@staging.patches.linaro.org Delivered-To: linaro@staging.patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 213AB27752 for ; Mon, 8 Apr 2013 05:00:35 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id w68sf1930451yhw.1 for ; Sun, 07 Apr 2013 22: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=FmHY3T7vSKvmWkXzJ+23SMymEjya4IiSD/TI27ebZAU=; b=M9Ho3ZUew3H1CtoMVpJdIVBF02eUdy+0kb6Kkohpn4d8YrHBvQZLBIuC5LE/SvzpUM U+kUDSafYP6PvyBA/qxnQoZzfnbNfMv3Cpx/gZBEZrWJvORemNyeLnUwPUhpynbn2b5P 2pKiHcSKhATvD0S4xQIxVB2rDWg4ap8664sywYZ6+2bQoKnq3E65tL993GetruArERRv LKxgh44sKv99bdBPZi2KOjnAN/fQPzY3ObojKVt2r5Lq5KUvf2Pc1ozkcw1SAGYU0Oqy u91tNb5vIVEGLfS4MDw5XeSkHxpYs5UY0AaPLH3tgqQApQKNO+kQ3oOb45V+P9Vbdm8X Khgw== X-Received: by 10.224.172.200 with SMTP id m8mr5138631qaz.0.1365397221338; Sun, 07 Apr 2013 22:00:21 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.72.164 with SMTP id e4ls2926578qev.18.gmail; Sun, 07 Apr 2013 22:00:21 -0700 (PDT) X-Received: by 10.52.23.205 with SMTP id o13mr12438542vdf.78.1365397221243; Sun, 07 Apr 2013 22:00:21 -0700 (PDT) Received: from mail-vb0-x22a.google.com (mail-vb0-x22a.google.com [2607:f8b0:400c:c02::22a]) by mx.google.com with ESMTPS id a1si17442357vef.29.2013.04.07.22.00.21 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 07 Apr 2013 22:00:21 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22a is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22a; Received: by mail-vb0-f42.google.com with SMTP id p12so3492893vbe.1 for ; Sun, 07 Apr 2013 22:00:21 -0700 (PDT) X-Received: by 10.52.245.6 with SMTP id xk6mr5162927vdc.114.1365397220967; Sun, 07 Apr 2013 22:00:20 -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 h8csp2888vez; Sun, 7 Apr 2013 22:00:20 -0700 (PDT) X-Received: by 10.180.37.166 with SMTP id z6mr2445513wij.34.1365397220017; Sun, 07 Apr 2013 22:00:20 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id t4si9261457wjw.151.2013.04.07.22.00.19 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 07 Apr 2013 22: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 1UP4Bn-0000h9-ET for ; Mon, 08 Apr 2013 05:00:19 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 385B5E0150 for ; Mon, 8 Apr 2013 05: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: 578 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 578: Fix bug #1163661 - "Not able to map float value to measurement field". Message-Id: <20130408050019.8401.86793.launchpad@ackee.canonical.com> Date: Mon, 08 Apr 2013 05: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: fba101294337a1dad394534a6f0f6757409fbfd7 X-Gm-Message-State: ALoCoQlorfhlNjpa2grRPy9jg41DwiQlyoTaYmN9goYhlqrLwX2v2I1+kgplteX6tp7jW3kVPO5l X-Original-Sender: noreply@launchpad.net X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22a 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: 578 committer: Senthil Kumaran branch nick: trunk timestamp: Mon 2013-04-08 10:27:50 +0530 message: Fix bug #1163661 - "Not able to map float value to measurement field". modified: lava_dispatcher/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/lava_test_shell.py' --- lava_dispatcher/lava_test_shell.py 2013-04-05 09:27:07 +0000 +++ lava_dispatcher/lava_test_shell.py 2013-04-08 04:57:50 +0000 @@ -239,6 +239,13 @@ continue res['log_lineno'] = lineno res['log_filename'] = 'stdout.log' + if 'measurement' in res: + try: + res['measurement'] = decimal.Decimal(res['measurement']) + except decimal.InvalidOperation: + logging.warning("Invalid measurement %s" % ( + res['measurement'])) + del res['measurement'] results_from_log_file.append(res) results_from_directories = []