diff options
author | Joe Guo <joeg@catalyst.net.nz> | 2018-07-30 18:21:29 +1200 |
---|---|---|
committer | Douglas Bagnall <dbagnall@samba.org> | 2018-08-24 07:49:30 +0200 |
commit | 115f2a71b883567dcf324da5cd02cfc3c86431b4 (patch) | |
tree | 1e9c657b58e2186fd03e4f7ad182b945970967a0 /source3 | |
parent | fd6b2086cbf03d8dd0b46160f345bf7cc5551aeb (diff) | |
download | samba-115f2a71b883567dcf324da5cd02cfc3c86431b4.tar.gz |
PEP8: fix E305: expected 2 blank lines after class or function definition, found 1
Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'source3')
-rwxr-xr-x | source3/script/tests/test_wbinfo_sids2xids_int.py | 2 | ||||
-rwxr-xr-x | source3/selftest/tests.py | 1 | ||||
-rwxr-xr-x | source3/torture/test_ntlm_auth.py | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/source3/script/tests/test_wbinfo_sids2xids_int.py b/source3/script/tests/test_wbinfo_sids2xids_int.py index f0f51429273..6c2b552f62c 100755 --- a/source3/script/tests/test_wbinfo_sids2xids_int.py +++ b/source3/script/tests/test_wbinfo_sids2xids_int.py @@ -28,6 +28,7 @@ def fill_cache(inids, idtype='gid'): subprocess.Popen([wbinfo, '--%s-to-sid=%s' % (idtype, inid)], stdout=subprocess.PIPE).communicate() + domain = subprocess.Popen([wbinfo, "--own-domain"], stdout=subprocess.PIPE).communicate()[0].strip() domsid = subprocess.Popen([wbinfo, "-n", domain + "/"], @@ -106,6 +107,7 @@ def check_multiple(sids, idtypes): sys.exit(1) i += 1 + # first round: with filled cache via sid-to-id check_singular(sids, gids, 'gid') check_singular(sids, uids, 'uid') diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index 34a2f31246b..2a05212103a 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -37,6 +37,7 @@ def plansmbtorture4testsuite(name, env, options, description=''): selftesthelpers.plansmbtorture4testsuite( name, env, options, target='samba3', modname=modname) + # find config.h try: config_h = os.environ["CONFIG_H"] diff --git a/source3/torture/test_ntlm_auth.py b/source3/torture/test_ntlm_auth.py index d133527aa28..28b83f8cde7 100755 --- a/source3/torture/test_ntlm_auth.py +++ b/source3/torture/test_ntlm_auth.py @@ -331,6 +331,7 @@ def main(): os.waitpid(client_pid, 0) sys.exit(0) + if __name__ == "__main__": main() |