From patchwork Thu Sep 12 08:19:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Senthil Kumaran X-Patchwork-Id: 19991 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f70.google.com (mail-qe0-f70.google.com [209.85.128.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 63ED425B63 for ; Thu, 12 Sep 2013 08:19:28 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id b4sf12058774qen.5 for ; Thu, 12 Sep 2013 01:19:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mime-version:to:from:subject :message-id:date:reply-to:sender:errors-to:precedence :x-original-sender:x-original-authentication-results:mailing-list :list-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=3cUMRulAW78pUa7OhHs2q6T7jYoE36PJbFD1HyB59J8=; b=LbQgcnmMV8qDHivHpX2yuJTwSjGOLptrXfEt7QXVd6d9/CcqaqYKsV/7oqGdhqH9gH O36oxJ1g2m1xggBdkMTe2GPp4igYKVD/aweIHoffRB7gIl4Wl8bxdBExwUT+UYewZd8U xLPEd2hNJpucjWBGiioNx28Ea6LKVReWrqiNN3LRPaHfGJYr5b9kFPW7ROtVSe8OVH1I 5MbhRo9GLr5cZ46m7w3FtvLOHd8blZeMEe14u5IrZZ+3JyTNuBtIChc5OISfS+MeQMO6 aIXq53tAPmASMWZV1LPYZ0+frLJUy0FkHYoAbiREikVaT+tEzpTg5Mg1gLzvAFFEOM9P Rpug== X-Gm-Message-State: ALoCoQnziK8JG+V1b6Q4viZv7uQAyZV8bD41sej54xLbk22ZcD01Y+Wdol1lkDGEH7JG89rg+UY4 X-Received: by 10.236.108.233 with SMTP id q69mr2411979yhg.11.1378973967989; Thu, 12 Sep 2013 01:19:27 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.81.230 with SMTP id d6ls626279qey.93.gmail; Thu, 12 Sep 2013 01:19:27 -0700 (PDT) X-Received: by 10.221.51.206 with SMTP id vj14mr5489913vcb.17.1378973967739; Thu, 12 Sep 2013 01:19:27 -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 xz7si833915vcb.50.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 12 Sep 2013 01:19:27 -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 ia10so7015054vcb.34 for ; Thu, 12 Sep 2013 01:19:27 -0700 (PDT) X-Received: by 10.52.232.165 with SMTP id tp5mr4575834vdc.11.1378973967617; Thu, 12 Sep 2013 01:19:27 -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.220.174.196 with SMTP id u4csp6330vcz; Thu, 12 Sep 2013 01:19:27 -0700 (PDT) X-Received: by 10.194.122.99 with SMTP id lr3mr4891643wjb.21.1378973966729; Thu, 12 Sep 2013 01:19:26 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id gw5si1510277wib.73.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 12 Sep 2013 01:19:26 -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 1VK27a-0006dX-5r for ; Thu, 12 Sep 2013 08:19:26 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 207E2F3005 for ; Thu, 12 Sep 2013 08:19:26 +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: 682 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 682: Fix bug #1224260 - split_multi_job makes assumptions about the job JSON that Message-Id: <20130912081926.12586.445.launchpad@ackee.canonical.com> Date: Thu, 12 Sep 2013 08:19:26 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: list X-Generated-By: Launchpad (canonical.com); Revision="16761"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: f9f3f8dde80d5a134ad980331ea6ba3a094a35f8 X-Removed-Original-Auth: Dkim didn't pass. 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: , Merge authors: Senthil Kumaran S (stylesen) Related merge proposals: https://code.launchpad.net/~stylesen/lava-dispatcher/fix-bug-1224260/+merge/185210 proposed by: Senthil Kumaran S (stylesen) review: Approve - Neil Williams (codehelp) ------------------------------------------------------------ revno: 682 [merge] committer: Senthil Kumaran branch nick: trunk timestamp: Thu 2013-09-12 13:48:22 +0530 message: Fix bug #1224260 - split_multi_job makes assumptions about the job JSON that are not enforced by the schema. Always do not assume we have logging_level specified in the job JSON. 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-08-28 14:55:50 +0000 +++ lava_dispatcher/actions/lava_test_shell.py 2013-09-12 07:08:25 +0000 @@ -648,7 +648,9 @@ else: fout.write("LAVA_TEST_BIN='%s/bin'\n" % target.deployment_data['lava_test_dir']) fout.write("LAVA_MULTI_NODE_CACHE='%s'\n" % LAVA_MULTI_NODE_CACHE_FILE) - if self.context.test_data.metadata['logging_level'] == 'DEBUG': + logging_level = self.context.test_data.metadata.get(\ + 'logging_level', None) + if logging_level and logging_level == 'DEBUG': fout.write("LAVA_MULTI_NODE_DEBUG='yes'\n") fout.write(fin.read()) os.fchmod(fout.fileno(), XMOD)