wbinfo: fix tests and lack of cache flushing
authorGarming Sam <garming@catalyst.net.nz>
Tue, 25 Nov 2014 02:59:27 +0000 (15:59 +1300)
committerGarming Sam <garming@samba.org>
Thu, 27 Nov 2014 01:51:11 +0000 (02:51 +0100)
Change-Id: I1a0a8f62522a6eb64d39bee48f4f71403d7c343a
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/script/tests/test_wbinfo_sids2xids_int.py

index e9cd9abc69a83586c9ea066d33cb08123cd5b454..b26f6d62e9ef2daf51502fbdd027b1f326c0ba8a 100755 (executable)
@@ -24,7 +24,7 @@ domsid = domsid.split(' ')[0]
 
 sids=[ domsid + '-512', 'S-1-5-32-545', domsid + '-513' ]
 
-flush_cache
+flush_cache()
 
 sids2xids = subprocess.Popen([wbinfo, '--sids-to-unix-ids=' +  ','.join(sids)],
                              stdout=subprocess.PIPE).communicate()[0].strip()
@@ -58,7 +58,7 @@ def check_singular(sids, gids):
 check_singular(sids, gids)
 
 # second round: with empty cache
-flush_cache
+flush_cache()
 check_singular(sids, gids)
 
 sys.exit(0)