summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJoe Guo <joeg@catalyst.net.nz>2018-07-30 18:21:29 +1200
committerDouglas Bagnall <dbagnall@samba.org>2018-08-24 07:49:30 +0200
commit115f2a71b883567dcf324da5cd02cfc3c86431b4 (patch)
tree1e9c657b58e2186fd03e4f7ad182b945970967a0 /source3
parentfd6b2086cbf03d8dd0b46160f345bf7cc5551aeb (diff)
downloadsamba-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-xsource3/script/tests/test_wbinfo_sids2xids_int.py2
-rwxr-xr-xsource3/selftest/tests.py1
-rwxr-xr-xsource3/torture/test_ntlm_auth.py1
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()