From patchwork Wed Jun 4 13:12:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 31357 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 66619203AC for ; Wed, 4 Jun 2014 13:14:19 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id tp5sf42534286ieb.9 for ; Wed, 04 Jun 2014 06:14:18 -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:from:to:date:message-id :mime-version:cc:subject:precedence:list-id:list-unsubscribe :list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=VQn9vWldkooDmhR60V1XtZuwz3NJygn77gTAEB6szpY=; b=Gd429F5TQMTSF4KoqtK3//TU0z5FzMbpH+O+bPYMofNBjGwY2YUCHe+gQuoPSAgm+e DitKY7pdL8vHNILtCjksAm8pW/30RlP8vmLmTzGJj8hd1DbEin6043JXzwBNzdCVEn+u pqOJsrpyNJPT98/WUXw9e48GSS1A5OyAl/WzGoi2sRx6reElJGrzOBc/Xh0rBFEqKw5w bWL9AwonzUXqTjOk/rGcJoQ4JdT9SErtqGV3QdyVZjd5pVJszb9d5S6rfwxtoXXivXAE g5bui6SKUqNkJ58hjMMLXIwVkqRnnVpJX2v4UxBr4hYW1XQBKAID085hLtnaU0WXbuSM 2/Kg== X-Gm-Message-State: ALoCoQnxEOOBPasB/N3OL9fUpf3PjgQ0VBeZ8BS7yz4j+wNsTEfnm1u+umOVzYvRmkzOVaFXsQ4Z X-Received: by 10.182.20.195 with SMTP id p3mr21394013obe.26.1401887658895; Wed, 04 Jun 2014 06:14:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.31.195 with SMTP id f61ls3009332qgf.59.gmail; Wed, 04 Jun 2014 06:14:18 -0700 (PDT) X-Received: by 10.58.99.36 with SMTP id en4mr1950401veb.62.1401887658784; Wed, 04 Jun 2014 06:14:18 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id xr4si1520365veb.87.2014.06.04.06.14.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Jun 2014 06:14:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.179 as permitted sender) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id oy12so8642737veb.24 for ; Wed, 04 Jun 2014 06:14:18 -0700 (PDT) X-Received: by 10.58.2.74 with SMTP id 10mr1981286ves.61.1401887658706; Wed, 04 Jun 2014 06:14:18 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.54.6 with SMTP id vs6csp44022vcb; Wed, 4 Jun 2014 06:14:18 -0700 (PDT) X-Received: by 10.52.22.13 with SMTP id z13mr37055730vde.10.1401887658382; Wed, 04 Jun 2014 06:14:18 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id v2si273721vcn.15.2014.06.04.06.14.18 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Jun 2014 06:14:18 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WsAzH-0000EM-VT; Wed, 04 Jun 2014 13:12:15 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WsAzG-0000Dz-PB for xen-devel@lists.xen.org; Wed, 04 Jun 2014 13:12:14 +0000 Received: from [85.158.137.68:6720] by server-7.bemta-3.messagelabs.com id 28/E5-04151-D2B1F835; Wed, 04 Jun 2014 13:12:13 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-4.tower-31.messagelabs.com!1401887531!7970292!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 17926 invoked from network); 4 Jun 2014 13:12:12 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-4.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 4 Jun 2014 13:12:12 -0000 X-IronPort-AV: E=Sophos;i="4.98,973,1392163200"; d="scan'208";a="139472159" Received: from accessns.citrite.net (HELO FTLPEX01CL01.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 04 Jun 2014 13:12:11 +0000 Received: from norwich.cam.xci-test.com (10.80.248.129) by smtprelay.citrix.com (10.13.107.78) with Microsoft SMTP Server id 14.3.181.6; Wed, 4 Jun 2014 09:12:10 -0400 Received: from spare.cam.xci-test.com ([10.80.2.80] helo=kazak.uk.xensource.com.) by norwich.cam.xci-test.com with esmtp (Exim 4.72) (envelope-from ) id 1WsAzB-0002fO-Uw; Wed, 04 Jun 2014 13:12:10 +0000 From: Ian Campbell To: Date: Wed, 4 Jun 2014 14:12:07 +0100 Message-ID: <1401887529-13241-1-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.9.0 MIME-Version: 1.0 X-DLP: MIA2 Cc: Ian Campbell , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH OSSTEST 1/3] standalone: ensure log dir exists for all users of with_logging X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: By moving the check into that function. Previously at least make-flight was failing to all ensure_logs Signed-off-by: Ian Campbell --- standalone | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/standalone b/standalone index 0f491c1..b5eb9bc 100755 --- a/standalone +++ b/standalone @@ -135,6 +135,7 @@ ensure_logs() { with_logging() { local log=$1; shift + ensure_logs $@ 2>&1 | tee "$log" rc=${PIPESTATUS[0]} if [ $rc -ne 0 ] ; then @@ -209,8 +210,6 @@ case $op in job=$1; shift - ensure_logs - OSSTEST_CONFIG=$config \ OSSTEST_FLIGHT=$flight \ OSSTEST_HOST_HOST=$host \ @@ -228,8 +227,6 @@ case $op in job=$1; shift ts=$1; shift - ensure_logs - OSSTEST_CONFIG=$config \ OSSTEST_FLIGHT=$flight \ OSSTEST_HOST_REUSE=$reuse \