summaryrefslogtreecommitdiff
path: root/wintest/wintest.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-24 14:16:35 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-24 16:42:52 +1100
commit1252d6bdf4b213dec432dbe1a9e3dd45d8e95c76 (patch)
treebbe6d62fb4b1ad2061bc15858535ad572935adbc /wintest/wintest.py
parentf207cc185f228490860151a35e2b94066120f335 (diff)
downloadsamba-1252d6bdf4b213dec432dbe1a9e3dd45d8e95c76.tar.gz
samba-1252d6bdf4b213dec432dbe1a9e3dd45d8e95c76.tar.bz2
samba-1252d6bdf4b213dec432dbe1a9e3dd45d8e95c76.zip
wintest: remove reliance on hostname in /etc/hosts
- don't setwinvars() in test code - use fully qualified names where possible - don't delete named and rndc config
Diffstat (limited to 'wintest/wintest.py')
-rw-r--r--wintest/wintest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wintest/wintest.py b/wintest/wintest.py
index 659b15ec43..81e2eda515 100644
--- a/wintest/wintest.py
+++ b/wintest/wintest.py
@@ -328,6 +328,9 @@ class wintest():
connected, but don't use DHCP, and force the DNS server to our
DNS server. This allows DNS updates to run"""
self.get_ipconfig(child)
+ if self.getvar("WIN_IPV4_ADDRESS") != self.getvar("WIN_IP"):
+ raise RuntimeError("ipconfig address %s != nmblookup address %s" % (self.getvar("WIN_IPV4_ADDRESS"),
+ self.getvar("WIN_IP")))
child.sendline('netsh')
child.expect('netsh>')
child.sendline('offline')