]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
test-patchset: Make a copy of the typo dictionary
authorDaniel Thompson <daniel.thompson@linaro.org>
Fri, 23 Jan 2015 10:09:29 +0000 (10:09 +0000)
committerJacob Keller <jacob.e.keller@intel.com>
Fri, 23 Jan 2015 21:16:16 +0000 (13:16 -0800)
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 <daniel.thompson@linaro.org>
Tested-by: Lee Jones <lee.jones@linaro.org>
aiaiai-test-patchset

index bfc8dbb67daf62346da5f8d8e885932b01a66744..85fd0575dd4b1831eab483f9a9466bda02c0127f 100755 (executable)
@@ -483,6 +483,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=