]> git.proxmox.com Git - ovs.git/commitdiff
checkpatch: Add explicit test for mailing list as author.
authorBen Pfaff <blp@ovn.org>
Thu, 1 Nov 2018 15:06:31 +0000 (08:06 -0700)
committerBen Pfaff <blp@ovn.org>
Fri, 2 Nov 2018 20:40:51 +0000 (13:40 -0700)
Somehow some such patches snuck through.  checkpatch caught them (and the
committer missed that) but this makes it even more explicit.

Reviewed-by: Yifeng Sun <pkusunyifeng@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
tests/checkpatch.at
utilities/checkpatch.py

index 8af3a8c0371ea27095027e26db989106e20073ee..bd7422494e3348c11beaee654bd2ab1d03e32ec8 100755 (executable)
@@ -51,6 +51,14 @@ try_checkpatch \
     Commit: A" \
    "ERROR: Author A needs to sign off."
 
+# Single author but somehow the mailing list is the author.
+try_checkpatch \
+   "Author: Foo Bar via dev <ovs-dev@openvswitch.org>
+    Commit: A
+
+    Signed-off-by: A" \
+   "ERROR: Author should not be mailing list."
+
 # Sign-off for single author and different committer.
 try_checkpatch \
    "Author: A
index 5f5dd8318e328eef2ea9e726187c13dc9673da1c..54aa4b6346dbcf8353358d8b1ffb395dd65399b3 100755 (executable)
@@ -731,6 +731,9 @@ def ovs_checkpatch_parse(text, filename, author=None, committer=None):
                     if not author:
                         print_error("Patch lacks author.")
                         continue
+                    if " via " in author or "@openvswitch.org" in author:
+                        print_error("Author should not be mailing list.")
+                        continue
                     if author in co_authors:
                         print_error("Author should not be also be co-author.")
                         continue