mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
selftest: Output error when samba_tool user command fails
It should help to debug why is it failing on some hosts in the build farm (ie. sn-devel) Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
1160b699cb
commit
fffbdf01fa
@ -232,7 +232,8 @@ class UserCmdTestCase(SambaToolCmdTest):
|
|||||||
"-H", "ldap://%s" % os.environ["DC_SERVER"],
|
"-H", "ldap://%s" % os.environ["DC_SERVER"],
|
||||||
"-U%s%%%s" % (os.environ["DC_USERNAME"], os.environ["DC_PASSWORD"]))
|
"-U%s%%%s" % (os.environ["DC_USERNAME"], os.environ["DC_PASSWORD"]))
|
||||||
|
|
||||||
self.assertCmdSuccess(result)
|
msg = "command should return %s" % err
|
||||||
|
self.assertCmdSuccess(result, msg)
|
||||||
self.assertEquals(err,"","Shouldn't be any error messages")
|
self.assertEquals(err,"","Shouldn't be any error messages")
|
||||||
self.assertIn("User '%s' created successfully" % user["name"], out)
|
self.assertIn("User '%s' created successfully" % user["name"], out)
|
||||||
|
|
||||||
@ -261,7 +262,8 @@ class UserCmdTestCase(SambaToolCmdTest):
|
|||||||
"-H", "ldap://%s" % os.environ["DC_SERVER"],
|
"-H", "ldap://%s" % os.environ["DC_SERVER"],
|
||||||
"-U%s%%%s" % (os.environ["DC_USERNAME"], os.environ["DC_PASSWORD"]))
|
"-U%s%%%s" % (os.environ["DC_USERNAME"], os.environ["DC_PASSWORD"]))
|
||||||
|
|
||||||
self.assertCmdSuccess(result)
|
msg = "command should return %s" % err
|
||||||
|
self.assertCmdSuccess(result, msg)
|
||||||
self.assertEquals(err,"","Shouldn't be any error messages")
|
self.assertEquals(err,"","Shouldn't be any error messages")
|
||||||
self.assertIn("User '%s' created successfully" % user["name"], out)
|
self.assertIn("User '%s' created successfully" % user["name"], out)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user