]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
test-patchset: Make a copy of const_structs.checkpatch
authorDaniel Thompson <daniel.thompson@linaro.org>
Thu, 5 Oct 2017 21:33:57 +0000 (22:33 +0100)
committerJacob Keller <jacob.e.keller@intel.com>
Thu, 5 Oct 2017 22:29:39 +0000 (15:29 -0700)
Currently aiaiai issues the following warning for each patch under test
because recent versions of checkpatch look for a list of structures in
scripts/const_structs.checkpatch .

This patch fixes the problem by copying out the extra file (if one is
found).

Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
aiaiai-test-patchset

index 6193dfcae0f11234f6d232546a74876001086ec4..0ecbac68e9fdf0d0a2def4545c98c22888c7f223 100755 (executable)
@@ -481,12 +481,18 @@ if [ -n "$checkpatch" ]; then
                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
+               # 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
+
+               # Also grab the list of constant structures (if present in this kernel)
+               if git cat-file -e "$commit_id1:scripts/const_structs.checkpatch" 2>/dev/null; then
+                       git show "$commit_id1:scripts/const_structs.checkpatch" > "$tmpdir/checkpatch/const_structs.checkpatch"
+               fi
+
        else
                verbose "Can't find checkpatch.pl.. disabling checkpatch tests."
                checkpatch=