ia64/xen-unstable

changeset 8159:fbbb8a2a6013

Work around the fact that the physinfo dom0 call is not implemented for IA64.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Thu Dec 01 03:26:47 2005 +0000 (2005-12-01)
parents e6d64c356d63
children 2e3051c01757
files tools/python/xen/util/bugtool.py
line diff
     1.1 --- a/tools/python/xen/util/bugtool.py	Thu Dec 01 03:19:40 2005 +0000
     1.2 +++ b/tools/python/xen/util/bugtool.py	Thu Dec 01 03:26:47 2005 +0000
     1.3 @@ -69,10 +69,17 @@ those logs from the archive.
     1.4      bugball = []
     1.5  
     1.6      xc = xen.lowlevel.xc.xc()
     1.7 -    bugball.append(string_iterator('xen-dmesg', xc.readconsolering()))
     1.8 -    bugball.append(string_iterator('physinfo',  prettyDict(xc.physinfo())))
     1.9 -    bugball.append(string_iterator('xeninfo',   prettyDict(xc.xeninfo())))
    1.10 -    del xc
    1.11 +
    1.12 +    def do(n, f):
    1.13 +        try:
    1.14 +            s = f()
    1.15 +        except Exception, exn:
    1.16 +            s = str(exn)
    1.17 +        bugball.append(string_iterator(n, s))
    1.18 +
    1.19 +    do('xen-dmesg', lambda: xc.readconsolering())
    1.20 +    do('physinfo',  lambda: prettyDict(xc.physinfo()))
    1.21 +    do('xeninfo',   lambda: prettyDict(xc.xeninfo()))
    1.22  
    1.23      for filename in FILES_TO_SEND:
    1.24          if not os.path.exists(filename):