source4 smbd test: prefork process restart
[bbaumbach/samba-autobuild/.git] / wintest / test-s3.py
index d1139b603c6da2ce1df1aecdba417bd08fae769c..0c270ea8f9a24e61f3e1640cdbaf89fef758605e 100755 (executable)
@@ -2,8 +2,6 @@
 
 '''automated testing of Samba3 against windows'''
 
-import sys, os
-import optparse
 import wintest
 
 
@@ -13,7 +11,7 @@ def set_libpath(t):
 
 def set_krb5_conf(t):
     t.run_cmd("mkdir -p ${PREFIX}/etc")
-    t.write_file("${PREFIX}/etc/krb5.conf", 
+    t.write_file("${PREFIX}/etc/krb5.conf",
                  '''[libdefaults]
        dns_lookup_realm = false
        dns_lookup_kdc = true''')
@@ -175,7 +173,7 @@ def create_root_account(t, vm):
     child = t.pexpect_spawn('bin/net ads password root -Uadministrator%${WIN_PASS}')
     child.expect("Enter new password for root")
     child.sendline("${PASSWORD2}")
-    child.expect("Password change for ");
+    child.expect("Password change for ")
     child.expect(" completed")
     child = t.pexpect_spawn('bin/net rpc shell -S ${WIN_HOSTNAME}.${WIN_REALM} -Uadministrator%${WIN_PASS}')
     child.expect("net rpc>")