From patchwork Tue Aug 6 08:40:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milo Casagrande X-Patchwork-Id: 18789 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1596823A4E for ; Tue, 6 Aug 2013 08:40:40 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id z20sf104644yhz.7 for ; Tue, 06 Aug 2013 01:40:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; 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=s/DPAS6xGYLN+JVxFeK2IiKZmAIRGjSiLGwtf7GJNWc=; b=jZeamIL9V1/P6XXCl3hl2AboyqdZZFVvR7/CK25v/Da/TGBIhhKscDhOageCiQsjPd /9V5lM7zHm0xZy42EEkEe6i4GBpAM6UMwpC19ekhp0qJL580LDg23NA/lawlisw84X3I 5TmWoIfSZWvribCL4U/aXfYrfpxDBktpvqfgLrWrppdK41a/kCO3jSUJbGfk2sMOesZ1 3CbueaWGyQNDcszUByIdTCgOEYUkGs9Cx+f82zAO+8xXgB+3iwsOg62kFXwgsTqDDbWM u24Tf6yuuvIRLxFRcdDzi5cSKxGZVuBXsa4PEdyeLFV46eKWhHIFjmpbD4TxWw2R7uI2 DuLA== X-Received: by 10.236.199.102 with SMTP id w66mr51554yhn.41.1375778439892; Tue, 06 Aug 2013 01:40:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.41.40 with SMTP id c8ls117739qel.72.gmail; Tue, 06 Aug 2013 01:40:39 -0700 (PDT) X-Received: by 10.58.196.132 with SMTP id im4mr71592vec.28.1375778439788; Tue, 06 Aug 2013 01:40:39 -0700 (PDT) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx.google.com with ESMTPS id uw3si69025vec.58.2013.08.06.01.40.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 Aug 2013 01:40:39 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.54 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.54; Received: by mail-vb0-f54.google.com with SMTP id q14so92685vbe.13 for ; Tue, 06 Aug 2013 01:40:39 -0700 (PDT) X-Gm-Message-State: ALoCoQnWznJY1waPDLu7NKMmHLfMVXUDYEcukpmRDdlax+FGC/l6AC4sFXjsE9U6Ce9L9i32B0b4 X-Received: by 10.58.211.227 with SMTP id nf3mr79029vec.20.1375778439603; Tue, 06 Aug 2013 01:40:39 -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.221.11.8 with SMTP id pc8csp133947vcb; Tue, 6 Aug 2013 01:40:39 -0700 (PDT) X-Received: by 10.180.149.134 with SMTP id ua6mr127928wib.51.1375778438583; Tue, 06 Aug 2013 01:40:38 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id ud14si196964wib.67.2013.08.06.01.40.38 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 06 Aug 2013 01:40:38 -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 1V6coo-0000iM-1P for ; Tue, 06 Aug 2013 08:40:38 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id F4029E04F3 for ; Tue, 6 Aug 2013 08:40:37 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-tool X-Launchpad-Branch: ~linaro-validation/lava-tool/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 189 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-tool/trunk] Rev 189: Fixes for integration tests. Message-Id: <20130806084037.22025.49138.launchpad@ackee.canonical.com> Date: Tue, 06 Aug 2013 08:40:37 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: list X-Generated-By: Launchpad (canonical.com); Revision="16718"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 81fa528c8f75dd31180f404902a129932954365a 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.212.54 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: Milo Casagrande (milo) Related merge proposals: https://code.launchpad.net/~milo/lava-tool/integration-tests-fixes/+merge/177637 proposed by: Milo Casagrande (milo) review: Approve - Antonio Terceiro (terceiro) ------------------------------------------------------------ revno: 189 [merge] committer: Milo Casagrande branch nick: trunk timestamp: Tue 2013-08-06 09:48:24 +0200 message: Fixes for integration tests. modified: integration-tests.d/lava-job-new-with-config.sh integration-tests.d/lava-job-submit.sh integration-tests.d/lib/server.py --- lp:lava-tool https://code.launchpad.net/~linaro-validation/lava-tool/trunk You are subscribed to branch lp:lava-tool. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-tool/trunk/+edit-subscription === modified file 'integration-tests.d/lava-job-new-with-config.sh' --- integration-tests.d/lava-job-new-with-config.sh 2013-05-28 22:08:12 +0000 +++ integration-tests.d/lava-job-new-with-config.sh 2013-07-30 15:45:44 +0000 @@ -3,8 +3,8 @@ device_type = panda [device_type=panda] -prebuilt_image = file:///path/to/panda.img +image = file:///path/to/panda.img EOF -LAVACONFIG="${tmpdir}/config" lava job new "${tmpdir}/job.json" +LAVACONFIG="${tmpdir}/config" lava job new "${tmpdir}/job.json" -n cat "${tmpdir}/job.json" grep "device_type.*panda" "${tmpdir}/job.json" && grep "image.*path.to.panda.img" "${tmpdir}/job.json" === modified file 'integration-tests.d/lava-job-submit.sh' --- integration-tests.d/lava-job-submit.sh 2013-06-03 18:06:49 +0000 +++ integration-tests.d/lava-job-submit.sh 2013-07-30 17:42:36 +0000 @@ -8,5 +8,5 @@ rpc_endpoint = http://localhost:5000/ok CONFIG -lava job submit integration-tests.d/sample/nexus.json > $tmpdir/output +lava job submit integration-tests.d/sample/nexus.json -n > $tmpdir/output grep "Job submitted with job ID 999" $tmpdir/output === modified file 'integration-tests.d/lib/server.py' --- integration-tests.d/lib/server.py 2013-06-03 18:06:49 +0000 +++ integration-tests.d/lib/server.py 2013-07-31 13:26:03 +0000 @@ -1,5 +1,4 @@ import os -import sys import yaml from flask import ( @@ -25,7 +24,7 @@ request.environ['werkzeug.server.shutdown']() return "" -@app.route('/', methods=['GET', 'POST']) +@app.route('//', methods=['GET', 'POST']) def reply(status_code): status = int(aliases.get(status_code, status_code))