From 111f8f4a7c86951c49dbc0f4c030d3a83d82b060 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 17 Feb 2012 11:26:23 +1100 Subject: wintest: Allow Windows VM to have no default route --- wintest/wintest.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'wintest') diff --git a/wintest/wintest.py b/wintest/wintest.py index da65732219..2738044e10 100644 --- a/wintest/wintest.py +++ b/wintest/wintest.py @@ -545,9 +545,10 @@ options { 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''' -- cgit