debuggers.hg
changeset 13803:2e80cd715047
Copy the definition of DOM0_UUID into XenDomain so that we don't need to import
large swathes of the server to run the Xen-API tests.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
large swathes of the server to run the Xen-API tests.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author | Ewan Mellor <ewan@xensource.com> |
---|---|
date | Thu Feb 01 11:42:50 2007 +0000 (2007-02-01) |
parents | b38ae44fa558 |
children | 6e81102d29be |
files | tools/xm-test/lib/XmTestLib/XenDomain.py tools/xm-test/tests/vtpm/09_vtpm-xapi.py |
line diff
1.1 --- a/tools/xm-test/lib/XmTestLib/XenDomain.py Thu Feb 01 10:21:42 2007 +0000 1.2 +++ b/tools/xm-test/lib/XmTestLib/XenDomain.py Thu Feb 01 11:42:50 2007 +0000 1.3 @@ -33,6 +33,9 @@ from DomainTracking import * 1.4 from acm import * 1.5 1.6 1.7 +DOM0_UUID = "00000000-0000-0000-0000-000000000000" 1.8 + 1.9 + 1.10 def getDefaultKernel(): 1.11 return arch.getDefaultKernel() 1.12
2.1 --- a/tools/xm-test/tests/vtpm/09_vtpm-xapi.py Thu Feb 01 10:21:42 2007 +0000 2.2 +++ b/tools/xm-test/tests/vtpm/09_vtpm-xapi.py Thu Feb 01 11:42:50 2007 +0000 2.3 @@ -13,7 +13,6 @@ 2.4 from XmTestLib import xapi 2.5 from XmTestLib.XenAPIDomain import XmTestAPIDomain 2.6 from XmTestLib import * 2.7 -from xen.xend import XendDomain 2.8 from vtpm_utils import * 2.9 import commands 2.10 import os 2.11 @@ -28,7 +27,7 @@ except Exception, e: 2.12 vm_uuid = domain.get_uuid() 2.13 2.14 vtpmcfg = {} 2.15 -vtpmcfg['backend'] = XendDomain.DOM0_UUID 2.16 +vtpmcfg['backend'] = DOM0_UUID 2.17 vtpmcfg['VM'] = vm_uuid 2.18 2.19 session = xapi.connect()