wintest Allow changing the telnet settings to fail, we might not be admin
authorAndrew Bartlett <abartlet@samba.org>
Thu, 7 Apr 2011 02:25:30 +0000 (12:25 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 7 Apr 2011 04:35:36 +0000 (14:35 +1000)
This allows us to test logging in as non-admin users over telnet

wintest/wintest.py

index 2a6da7d6567abc065bb5d8a4a13106eff075f7e4..e4419beb0c31322ddb1b51837fb76fd1cef9a08c 100644 (file)
@@ -571,7 +571,7 @@ options {
     def run_tlntadmn(self, child):
         '''remove the annoying telnet restrictions'''
         child.sendline('tlntadmn config maxconn=1024')
-        child.expect("The settings were successfully updated")
+        child.expect(["The settings were successfully updated", "Access is denied"])
         child.expect("C:")
 
     def disable_firewall(self, child):