diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-11-24 14:16:35 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-11-24 16:42:52 +1100 |
commit | 1252d6bdf4b213dec432dbe1a9e3dd45d8e95c76 (patch) | |
tree | bbe6d62fb4b1ad2061bc15858535ad572935adbc /wintest/wintest.py | |
parent | f207cc185f228490860151a35e2b94066120f335 (diff) | |
download | samba-1252d6bdf4b213dec432dbe1a9e3dd45d8e95c76.tar.gz |
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.py | 3 |
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') |