mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
pytest/netcmd: test samba-tool testparm global section
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: David Mulder <dmulder@suse.com>
This commit is contained in:
parent
5075df4575
commit
e0d96197fd
@ -94,6 +94,14 @@ class TestParmTests(NetCmdTestCase):
|
||||
"--section-name=tmp"],
|
||||
retcode=None)
|
||||
|
||||
def test_section_globals(self):
|
||||
# We can have '[global]' and '[globals]'
|
||||
for name in ['global', 'globals']:
|
||||
self.run_netcmd(cmd_testparm,
|
||||
[f"--configfile={self.smbconf.name}",
|
||||
f"--section-name={name}"],
|
||||
retcode=None)
|
||||
|
||||
def test_no_such_section(self):
|
||||
out, err = self.run_netcmd(cmd_testparm,
|
||||
["--configfile=%s" % self.smbconf.name,
|
||||
|
1
selftest/knownfail.d/samba-tool-testparm
Normal file
1
selftest/knownfail.d/samba-tool-testparm
Normal file
@ -0,0 +1 @@
|
||||
^samba.tests.netcmd.samba.tests.netcmd.TestParmTests.test_section_globals
|
Loading…
x
Reference in New Issue
Block a user