mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
samba-tool: Put full command and subcommand in informative name when testing samba-tool
These are not used for anything other than to print in the usage, but it seems nicer to match normal invocation of these commands Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
b5d6f7bef1
commit
5568892d43
@ -67,7 +67,7 @@ class SambaToolCmdTest(samba.tests.BlackboxTestCase):
|
||||
cmd = cmd_sambatool.subcommands[name]
|
||||
cmd.outf = StringIO()
|
||||
cmd.errf = StringIO()
|
||||
result = cmd._run(name, *args)
|
||||
result = cmd._run("samba-tool %s" % name, *args)
|
||||
return (result, cmd.outf.getvalue(), cmd.errf.getvalue())
|
||||
|
||||
def runsubcmd(self, name, sub, *args):
|
||||
@ -78,7 +78,7 @@ class SambaToolCmdTest(samba.tests.BlackboxTestCase):
|
||||
cmd = cmd_sambatool.subcommands[name].subcommands[sub]
|
||||
cmd.outf = StringIO()
|
||||
cmd.errf = StringIO()
|
||||
result = cmd._run(name, *args)
|
||||
result = cmd._run("samba-tool %s %s" % (name, sub), *args)
|
||||
return (result, cmd.outf.getvalue(), cmd.errf.getvalue())
|
||||
|
||||
def assertCmdSuccess(self, val, msg=""):
|
||||
|
Loading…
x
Reference in New Issue
Block a user