From patchwork Fri Jan 23 10:09:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Thompson X-Patchwork-Id: 43578 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2325D218DB for ; Fri, 23 Jan 2015 10:09:48 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id n3sf861614wiv.0 for ; Fri, 23 Jan 2015 02:09:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=hN/me7rAMXQGMkb/XUoO/R8wdN7ZRxXSyxCuF4w6+Xo=; b=RjoG861N8vf2z/I2dBJKntp6VO7qmj+YwaOp/FlsnIkHf0bAdc1MDj8X8xPy100vuI PnYQexSYy5lL6g9FUixHVMN7o2gMdtMvBopUfhzi5GKkWm+0875ayoR8X2omok3K0g8g 13majuYcea5Pxk/nfyvD/AJSOg9NoLG5kM3/9mfVnvXwOGFpqd3be6qKNqwWzN7cit9R JzDRHfN8rotWcFqtdK3Sqyv+PuBiKMAj/+zwjkLkkl8tQ3hSWquTtOgwpqMcsRbzxHuC sIWlk8kbV8Gw/7kT4nBMbN0d1SIFv6/3otQUXmaE5kPP0rB3TVIdzaaR29riiy/jwoXC /BMA== X-Gm-Message-State: ALoCoQlFVqjSqjPHOSIAmS9ntzkdKDDXHm7GPL1SC8z/Iw6edFQMoQ+57Zz5D9RbIh3h2RtSjHGO X-Received: by 10.112.161.201 with SMTP id xu9mr200671lbb.11.1422007787404; Fri, 23 Jan 2015 02:09:47 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.10.197 with SMTP id k5ls232526lab.77.gmail; Fri, 23 Jan 2015 02:09:47 -0800 (PST) X-Received: by 10.152.25.129 with SMTP id c1mr6412735lag.65.1422007787033; Fri, 23 Jan 2015 02:09:47 -0800 (PST) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id jq5si945937lbc.39.2015.01.23.02.09.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jan 2015 02:09:46 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by mail-lb0-f174.google.com with SMTP id f15so6217839lbj.5 for ; Fri, 23 Jan 2015 02:09:46 -0800 (PST) X-Received: by 10.112.44.230 with SMTP id h6mr6315544lbm.98.1422007786843; Fri, 23 Jan 2015 02:09:46 -0800 (PST) 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.112.9.200 with SMTP id c8csp194846lbb; Fri, 23 Jan 2015 02:09:46 -0800 (PST) X-Received: by 10.180.221.232 with SMTP id qh8mr2289766wic.6.1422007786214; Fri, 23 Jan 2015 02:09:46 -0800 (PST) Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com. [209.85.212.173]) by mx.google.com with ESMTPS id dv4si1569586wib.16.2015.01.23.02.09.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jan 2015 02:09:46 -0800 (PST) Received-SPF: pass (google.com: domain of daniel.thompson@linaro.org designates 209.85.212.173 as permitted sender) client-ip=209.85.212.173; Received: by mail-wi0-f173.google.com with SMTP id r20so1662480wiv.0 for ; Fri, 23 Jan 2015 02:09:45 -0800 (PST) X-Received: by 10.180.91.107 with SMTP id cd11mr2161659wib.58.1422007785618; Fri, 23 Jan 2015 02:09:45 -0800 (PST) Received: from sundance.lan (cpc4-aztw19-0-0-cust157.18-1.cable.virginm.net. [82.33.25.158]) by mx.google.com with ESMTPSA id n6sm1559807wjy.8.2015.01.23.02.09.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jan 2015 02:09:44 -0800 (PST) From: Daniel Thompson To: Jacob Keller Cc: Daniel Thompson , aiaiai@lists.infradead.org, patches@linaro.org, linaro-kernel@lists.linaro.org, John Stultz , Sumit Semwal Subject: [PATCH] test-patchset: Make a copy of the typo dictionary Date: Fri, 23 Jan 2015 10:09:29 +0000 Message-Id: <1422007769-26355-1-git-send-email-daniel.thompson@linaro.org> X-Mailer: git-send-email 1.9.3 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.thompson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list 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: , Currently aiaiai issues the following warning for each patch under test: No typos will be found - file '/tmp/aiaiai-test-patchset.32BU/checkpatch/spellin g.txt': No such file or directory In fact the problem can even more acute when testing older kernels that do not have this patch: https://lkml.org/lkml/2014/10/22/609 This patch fixes the problem by copying out the typo dictionary if one is found. Signed-off-by: Daniel Thompson Tested-by: Lee Jones --- aiaiai-test-patchset | 7 +++++++ 1 file changed, 7 insertions(+) -- 1.9.3 diff --git a/aiaiai-test-patchset b/aiaiai-test-patchset index dee9f80be2a6..e984f3c98657 100755 --- a/aiaiai-test-patchset +++ b/aiaiai-test-patchset @@ -476,6 +476,13 @@ if [ -n "$checkpatch" ]; then checkpatch_pl="$tmpdir/checkpatch/checkpatch.pl" git show "$commit_id1:scripts/checkpatch.pl" > "$checkpatch_pl" chmod $verbose u+x "$checkpatch_pl" >&2 + + # Also grab the typo corrections if the kernel under test has + # one (no need to report errors... if something is weird + # checkpatch will let us know). + if git cat-file -e "$commit_id1:scripts/spelling.txt" 2>/dev/null; then + git show "$commit_id1:scripts/spelling.txt" > "$tmpdir/checkpatch/spelling.txt" + fi else verbose "Can't find checkpatch.pl.. disabling checkpatch tests." checkpatch=