From 1b27efd9107eef290e2c7d4826953157bab2f3c4 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 13 Oct 2011 23:49:05 +0200 Subject: [PATCH] samba-tool: Add test to make sure all commands have a short description set. Autobuild-User: Jelmer Vernooij Autobuild-Date: Fri Oct 14 01:53:45 CEST 2011 on sn-devel-104 --- source4/scripting/python/samba/tests/netcmd.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source4/scripting/python/samba/tests/netcmd.py b/source4/scripting/python/samba/tests/netcmd.py index 3f6448ac28d..d7c6482a460 100644 --- a/source4/scripting/python/samba/tests/netcmd.py +++ b/source4/scripting/python/samba/tests/netcmd.py @@ -81,3 +81,14 @@ class CommandTests(NetCmdTestCase): if missing: self.fail("The following commands do not have a synopsis set: %r" % missing) + + def test_short_description_everywhere(self): + missing = [] + for path, cmd in self.iter_all_subcommands(): + if cmd.short_description is None: + missing.append(path) + if not missing: + return + self.fail( + "The following commands do not have a short description set: %r" % + missing) -- 2.11.4.GIT