diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2011-10-13 23:49:05 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2011-10-14 01:53:45 +0200 |
commit | 1b27efd9107eef290e2c7d4826953157bab2f3c4 (patch) | |
tree | 7cbb0c11e960dcd8c4955e1cfa3a1453323fa1d1 | |
parent | 37a4bcd28b997eca2c3e5ba60b516b6662bbe6a4 (diff) | |
download | samba-1b27efd9107eef290e2c7d4826953157bab2f3c4.tar.gz samba-1b27efd9107eef290e2c7d4826953157bab2f3c4.tar.bz2 samba-1b27efd9107eef290e2c7d4826953157bab2f3c4.zip |
samba-tool: Add test to make sure all commands have a short description set.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Oct 14 01:53:45 CEST 2011 on sn-devel-104
-rw-r--r-- | source4/scripting/python/samba/tests/netcmd.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/tests/netcmd.py b/source4/scripting/python/samba/tests/netcmd.py index 3f6448ac28..d7c6482a46 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) |