From patchwork Wed Feb 12 14:16:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 24544 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6C1FA203F3 for ; Wed, 12 Feb 2014 14:18:40 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id gq1sf35641309obb.8 for ; Wed, 12 Feb 2014 06:18:39 -0800 (PST) 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=SckGn6ZV1CbZxHuZAdoMKQKogfUA7Qe1kkVH1O3dSIU=; b=ki2aXQxb6G8uxw1BRnwW6terewYL+v35OyXkRgZ9ibXA8WvRUckqzsIimfvqQ8hB0I vbSR7cyaCn4K5tuvwK5vCLMlV/Sg2kE5YOD8SOIEQf17LksWACioQav1cGBoDAXpwAPh tHb4gIAPJ5rcRdsNNEEG8TmunBm6IaY+7CkBQf8hUc/mr3kDku934m9BPx9GqQqSlNp9 DQNvg1Mcl0QhezZRP8TvG+wr7QCv5Z1/TrHPVs4JyNZasSZsT2okFsu1H+kHQhSXqWUY qW3ZGznXiNz2kZ+5Ytck2GWRHyoSEGxr/1Lf+W1EO19DwUxtOEeng9E7KrNlmHk/d97z SFGw== X-Gm-Message-State: ALoCoQk55Lnkzgsq+yxB+xhOpEYPdvHqGHd4vo8zsqcQVll91XMnDONrvejWe56w1bTiaKzXHxYF X-Received: by 10.182.81.7 with SMTP id v7mr1796956obx.28.1392214719398; Wed, 12 Feb 2014 06:18:39 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.38.47 with SMTP id s44ls2980240qgs.70.gmail; Wed, 12 Feb 2014 06:18:39 -0800 (PST) X-Received: by 10.58.249.228 with SMTP id yx4mr166656vec.50.1392214719243; Wed, 12 Feb 2014 06:18:39 -0800 (PST) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id yb7si7359324vec.1.2014.02.12.06.18.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Feb 2014 06:18:39 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.182 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.182; Received: by mail-vc0-f182.google.com with SMTP id id10so7244531vcb.27 for ; Wed, 12 Feb 2014 06:18:39 -0800 (PST) X-Received: by 10.52.164.39 with SMTP id yn7mr13256562vdb.25.1392214719154; Wed, 12 Feb 2014 06:18:39 -0800 (PST) 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.220.174.196 with SMTP id u4csp3478vcz; Wed, 12 Feb 2014 06:18:37 -0800 (PST) X-Received: by 10.140.85.179 with SMTP id n48mr63007866qgd.91.1392214717677; Wed, 12 Feb 2014 06:18:37 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id j50si15322501qgf.87.2014.02.12.06.18.37 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 12 Feb 2014 06:18:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) 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 1WDacB-0000of-A4; Wed, 12 Feb 2014 14:16:39 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WDac9-0000oX-Rd for xen-devel@lists.xen.org; Wed, 12 Feb 2014 14:16:37 +0000 Received: from [85.158.143.35:16891] by server-2.bemta-4.messagelabs.com id B2/77-10891-5428BF25; Wed, 12 Feb 2014 14:16:37 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-8.tower-21.messagelabs.com!1392214595!5121439!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.9.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 15781 invoked from network); 12 Feb 2014 14:16:36 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-8.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 12 Feb 2014 14:16:36 -0000 X-IronPort-AV: E=Sophos;i="4.95,832,1384300800"; d="scan'208";a="100126712" Received: from accessns.citrite.net (HELO FTLPEX01CL01.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 12 Feb 2014 14:16:35 +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.2.342.4; Wed, 12 Feb 2014 09:16:34 -0500 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 1WDac6-0007ly-9P; Wed, 12 Feb 2014 14:16:34 +0000 From: Ian Campbell To: Date: Wed, 12 Feb 2014 14:16:34 +0000 Message-ID: <1392214594-26668-1-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.8.5.2 MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Campbell , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH OSSTEST] TestSupport: Don't use git proxy for non-git:// urls. 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=neutral (google.com: 209.85.220.182 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 X-Google-Group-Id: 836684582541 List-Archive: After this I was stymied by ssh host keys and other roadblocks and just pushed the branch to my xenbits tree but I think this is still correct as far as it goes. Signed-off-by: Ian Campbell --- Osstest/TestSupport.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 236083e..45e5ecb 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -988,7 +988,9 @@ sub file_simple_write_contents ($$) { sub git_massage_url ($) { my ($url) = @_; - if ($c{GitCacheProxy}) { $url = $c{GitCacheProxy}.$url; } + if ($url =~ m,^git://, && $c{GitCacheProxy}) { + $url = $c{GitCacheProxy}.$url; + } return $url; }