ia64/xen-unstable

changeset 14821:dcbfe557e62d

Make Xm Test default to bridge when cannot read config file

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
author Tom Wilkie <tom.wilkie@gmail.com>
date Thu Apr 12 11:32:25 2007 +0100 (2007-04-12)
parents 38f3a6dedad6
children 9e9eb5b3dab7
files tools/xm-test/lib/XmTestLib/NetConfig.py
line diff
     1.1 --- a/tools/xm-test/lib/XmTestLib/NetConfig.py	Thu Apr 12 11:31:17 2007 +0100
     1.2 +++ b/tools/xm-test/lib/XmTestLib/NetConfig.py	Thu Apr 12 11:32:25 2007 +0100
     1.3 @@ -44,7 +44,11 @@ def getXendNetConfig():
     1.4      if not xconfig:
     1.5          xconfig = "/etc/xen/xend-config.sxp"
     1.6  
     1.7 -    configfile = open(xconfig, 'r')
     1.8 +    try:
     1.9 +        configfile = open(xconfig, 'r')
    1.10 +    except:
    1.11 +        return "bridge"
    1.12 +    
    1.13      S = configfile.read()
    1.14      pin = Parser()
    1.15      pin.input(S)