torture: Fix fsmo test to use correct -H samba-tool syntax
authorAndrew Bartlett <abartlet@samba.org>
Sat, 17 Nov 2012 02:49:00 +0000 (13:49 +1100)
committerStefan Metzmacher <metze@samba.org>
Thu, 17 Jan 2013 14:10:10 +0000 (15:10 +0100)
However, the test still does not pass.

Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/torture/drs/python/fsmo.py

index f1fa6ef1fdea04fd2d9c618e8919b5e9e74477b8..8a1e9ff41d65516c9e26024e470389457d4e6270 100644 (file)
@@ -61,8 +61,8 @@ class DrsFsmoTestCase(drs_base.DrsBaseTestCase):
         creds = self.get_credentials()
         cmd_line_auth = "-U%s/%s%%%s" % (creds.get_domain(),
                                          creds.get_username(), creds.get_password())
-        # bin/samba-tool fsmo transfer --role=role --url=ldap://DC:389
-        cmd_line = "%s fsmo transfer --role=%s --url=ldap://%s:389 %s" % (net_cmd, role, DC,
+        # bin/samba-tool fsmo transfer --role=role -ldap://DC:389
+        cmd_line = "%s fsmo transfer --role=%s -ldap://%s:389 %s" % (net_cmd, role, DC,
                                                                            cmd_line_auth)
         ret = os.system(cmd_line)
         self.assertEquals(ret, 0, "Transferring role %s to %s has failed!" % (role, DC))