Skip to content

Commit

Permalink
wintest: Allow Windows VM to have no default route
Browse files Browse the repository at this point in the history
  • Loading branch information
abartlet committed Feb 17, 2012
1 parent ed85e9f commit 111f8f4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wintest/wintest.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,10 @@ def get_ipconfig(self, child):
child.expect('\d+.\d+.\d+.\d+')
self.setvar('WIN_SUBNET_MASK', child.after)
child.expect('Default Gateway')
child.expect('\d+.\d+.\d+.\d+')
self.setvar('WIN_DEFAULT_GATEWAY', child.after)
child.expect("C:")
i = child.expect(['\d+.\d+.\d+.\d+', "C:"])
if i == 0:
self.setvar('WIN_DEFAULT_GATEWAY', child.after)
child.expect("C:")

def get_is_dc(self, child):
'''check if a windows machine is a domain controller'''
Expand Down

0 comments on commit 111f8f4

Please sign in to comment.