The Samba-Bugzilla – Attachment 17516 Details for
Bug 15175
man samba-tool lacks many gpo subcommands
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
hack to samba-tool help test that finds this
0001-hack-to-test-samba-tool-manpage.patch (text/plain), 1.37 KB, created by
Douglas Bagnall
on 2022-09-15 04:19:42 UTC
(
hide
)
Description:
hack to samba-tool help test that finds this
Filename:
MIME Type:
Creator:
Douglas Bagnall
Created:
2022-09-15 04:19:42 UTC
Size:
1.37 KB
patch
obsolete
>From 4325eff9aa7c6a22e190c145a809cd311b1ff75f Mon Sep 17 00:00:00 2001 >From: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> >Date: Thu, 15 Sep 2022 16:14:49 +1200 >Subject: [PATCH] hack to test samba-tool manpage > > man -l bin/default/docs-xml/manpages/samba-tool.8 > /tmp/samba-tool.txt > git am {this} > make testenv > python3 -m samba.subunit.run samba.tests.samba_tool.help > > will print samba-tool subcommands that seem not to be mentioned > >Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> >--- > python/samba/tests/samba_tool/help.py | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/python/samba/tests/samba_tool/help.py b/python/samba/tests/samba_tool/help.py >index fa7836d8432..c2124e43365 100644 >--- a/python/samba/tests/samba_tool/help.py >+++ b/python/samba/tests/samba_tool/help.py >@@ -39,10 +39,15 @@ class HelpTestCase(SambaToolCmdTest): > # self.runcmd() or self.runsubcmd(). > known_commands = [[]] > failed_commands = [] >+ with open('/tmp/samba-tool.txt') as f: >+ man = f.read() > > for i in range(4): > new_commands = [] > for c in known_commands: >+ s = ' '.join(c) >+ if s not in man: >+ print(s) > line = ' '.join(['samba-tool'] + c + ['--help']) > try: > output = self.check_output(line) >-- >2.25.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 15175
: 17516