diff options
author | Joe Guo <joeg@catalyst.net.nz> | 2018-07-30 18:18:03 +1200 |
---|---|---|
committer | Douglas Bagnall <dbagnall@samba.org> | 2018-08-24 07:49:28 +0200 |
commit | 32266d2d48c1c38e54bcfaf1cad36f09e9cff355 (patch) | |
tree | 2cd1a3ea1d5c789d770dc2ce18f488464907b5ca /wintest | |
parent | fb5ea356dd2dcf7651ff2b0fb861042ed828821c (diff) | |
download | samba-32266d2d48c1c38e54bcfaf1cad36f09e9cff355.tar.gz |
PEP8: fix E225: missing whitespace around operator
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 'wintest')
-rwxr-xr-x | wintest/test-s4-howto.py | 8 | ||||
-rw-r--r-- | wintest/wintest.py | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/wintest/test-s4-howto.py b/wintest/test-s4-howto.py index 694f8c549e0..5a27c0edb86 100755 --- a/wintest/test-s4-howto.py +++ b/wintest/test-s4-howto.py @@ -25,7 +25,7 @@ def provision_s4(t, func_level="2008"): t.chdir('${PREFIX}') t.del_files(["var", "private"]) t.run_cmd("rm -f etc/smb.conf") - provision=['bin/samba-tool', + provision = ['bin/samba-tool', 'domain', 'provision', '--realm=${LCREALM}', @@ -256,7 +256,7 @@ def test_dcpromo(t, vm): time.sleep(2) child.sendline("net use t: \\\\${HOSTNAME}.${LCREALM}\\test") i = child.expect(["The command completed successfully", "The network path was not found"]) - retries -=1 + retries -= 1 t.run_net_time(child) @@ -447,7 +447,7 @@ def test_join_as_dc(t, vm): child.expect("C:") if i == 1: time.sleep(2) - retries -=1 + retries -= 1 t.info("Checking if showrepl is happy") child.sendline("repadmin /showrepl") @@ -520,7 +520,7 @@ def test_join_as_rodc(t, vm): child.expect("C:") if i == 1: time.sleep(2) - retries -=1 + retries -= 1 t.info("Checking if showrepl is happy") child.sendline("repadmin /showrepl") diff --git a/wintest/wintest.py b/wintest/wintest.py index ad177cdb77d..8eb4600a41c 100644 --- a/wintest/wintest.py +++ b/wintest/wintest.py @@ -174,9 +174,9 @@ class wintest(): if output: return subprocess.Popen([cmd], shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd=dir).communicate()[0] if isinstance(cmd, list): - shell=False + shell = False else: - shell=True + shell = True if checkfail: return subprocess.check_call(cmd, shell=shell, cwd=dir) else: @@ -192,9 +192,9 @@ class wintest(): else: self.info('$ ' + cmd) if isinstance(cmd, list): - shell=False + shell = False else: - shell=True + shell = True os.chdir(dir) ret = subprocess.Popen(cmd, shell=shell, stderr=subprocess.STDOUT) os.chdir(cwd) @@ -495,7 +495,7 @@ options { def ping_wait(self, hostname): '''wait for a hostname to come up on the network''' hostname = self.substitute(hostname) - loops=10 + loops = 10 while loops > 0: try: self.run_cmd("ping -c 1 -w 10 %s" % hostname) |