1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-31 20:22:15 +03:00

selftest: Add more tests for "samba-tool processes"

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12705
This commit is contained in:
Andrew Bartlett
2017-03-24 13:07:23 +13:00
parent 782172a9be
commit f21c17c6d0
2 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,12 @@ class ProcessCmdTestCase(SambaToolCmdTest):
(result, out, err) = self.runcmd("processes", "--name", "samba") (result, out, err) = self.runcmd("processes", "--name", "samba")
self.assertCmdSuccess(result, out, err, "Ensuring processes ran successfully") self.assertCmdSuccess(result, out, err, "Ensuring processes ran successfully")
def test_unknown_name(self):
"""Run processes command with an not-existing --name"""
(result, out, err) = self.runcmd("processes", "--name", "not-existing-samba")
self.assertCmdSuccess(result, out, err, "Ensuring processes ran successfully")
self.assertEqual(out, "")
def test_all(self): def test_all(self):
"""Run processes command""" """Run processes command"""
(result, out, err) = self.runcmd("processes") (result, out, err) = self.runcmd("processes")

View File

@ -319,3 +319,4 @@
^samba3.smb2.credits.skipped_mid.* ^samba3.smb2.credits.skipped_mid.*
^samba4.blackbox.dbcheck-links.release-4-5-0-pre1.dangling_multi_valued_dbcheck ^samba4.blackbox.dbcheck-links.release-4-5-0-pre1.dangling_multi_valued_dbcheck
^samba4.blackbox.dbcheck-links.release-4-5-0-pre1.dangling_multi_valued_check_missing ^samba4.blackbox.dbcheck-links.release-4-5-0-pre1.dangling_multi_valued_check_missing
^samba.tests.samba_tool.processes.samba.tests.samba_tool.processes.ProcessCmdTestCase.test_unknown_name\(ad_dc_ntvfs:local\)