mirror of
https://github.com/samba-team/samba.git
synced 2025-12-17 04:23:50 +03:00
pytest/netcmd: fix for new samba-tool api
In this case we are skipping _resolve(). Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
5247c87cc2
commit
c41887d903
@@ -31,8 +31,9 @@ class NetCmdTestCase(samba.tests.TestCaseInTempDir):
|
||||
|
||||
def run_netcmd(self, cmd_klass, args, retcode=0):
|
||||
cmd = cmd_klass(outf=StringIO(), errf=StringIO())
|
||||
cmd.command_name = "apricots"
|
||||
try:
|
||||
retval = cmd._run(cmd_klass.__name__, *args)
|
||||
retval = cmd._run(*args)
|
||||
except Exception as e:
|
||||
cmd.show_command_error(e)
|
||||
retval = 1
|
||||
|
||||
Reference in New Issue
Block a user