summaryrefslogtreecommitdiff
path: root/wintest/wintest.py
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-16 13:51:32 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-02-16 15:20:09 +1100
commit032a2c4ce3ec275379b1de37dccb0040071254c4 (patch)
treeb40806a2df7a2ee3d2e35599d123879174638ee9 /wintest/wintest.py
parent00f86a36e076130c2c34a49b8dc820f34bf65d85 (diff)
downloadsamba-032a2c4ce3ec275379b1de37dccb0040071254c4.tar.gz
samba-032a2c4ce3ec275379b1de37dccb0040071254c4.tar.bz2
samba-032a2c4ce3ec275379b1de37dccb0040071254c4.zip
wintest: connect to correct hostname in test_net_use
Diffstat (limited to 'wintest/wintest.py')
-rw-r--r--wintest/wintest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wintest/wintest.py b/wintest/wintest.py
index d5728a883b..325da964e2 100644
--- a/wintest/wintest.py
+++ b/wintest/wintest.py
@@ -845,11 +845,11 @@ RebootOnCompletion=No
self.cmd_contains("bin/smbclient --version", ["${SAMBA_VERSION}"])
self.retry_cmd('bin/smbclient -L ${WIN_HOSTNAME} -U%s%%%s %s' % (username, password, args), ["IPC"])
- def test_net_use(self, vm, domain, username, password):
+ def test_net_use(self, vm, realm, domain, username, password):
self.setwinvars(vm)
self.info('Testing net use against Samba3 member')
child = self.open_telnet("${WIN_HOSTNAME}", "%s\\%s" % (domain, username), password)
- child.sendline("net use t: \\\\${HOSTNAME}.${LCREALM}\\test")
+ child.sendline("net use t: \\\\${HOSTNAME}.%s\\test" % realm)
child.expect("The command completed successfully")