WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Copy the definition of DOM0_UUID into Xen

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Copy the definition of DOM0_UUID into XenDomain so that we don't need to import
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 01 Feb 2007 08:10:07 -0800
Delivery-date: Thu, 01 Feb 2007 08:10:56 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1170330170 0
# Node ID 2e80cd715047352fd8c524abb8dcb8a53646714b
# Parent  b38ae44fa5584544365476e87f1bf9d70f9fbb15
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@xxxxxxxxxxxxx>
---
 tools/xm-test/lib/XmTestLib/XenDomain.py |    3 +++
 tools/xm-test/tests/vtpm/09_vtpm-xapi.py |    3 +--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff -r b38ae44fa558 -r 2e80cd715047 tools/xm-test/lib/XmTestLib/XenDomain.py
--- a/tools/xm-test/lib/XmTestLib/XenDomain.py  Thu Feb 01 10:21:42 2007 +0000
+++ b/tools/xm-test/lib/XmTestLib/XenDomain.py  Thu Feb 01 11:42:50 2007 +0000
@@ -31,6 +31,9 @@ from XenDevice import *
 from XenDevice import *
 from DomainTracking import *
 from acm import *
+
+
+DOM0_UUID = "00000000-0000-0000-0000-000000000000"
 
 
 def getDefaultKernel():
diff -r b38ae44fa558 -r 2e80cd715047 tools/xm-test/tests/vtpm/09_vtpm-xapi.py
--- a/tools/xm-test/tests/vtpm/09_vtpm-xapi.py  Thu Feb 01 10:21:42 2007 +0000
+++ b/tools/xm-test/tests/vtpm/09_vtpm-xapi.py  Thu Feb 01 11:42:50 2007 +0000
@@ -13,7 +13,6 @@ from XmTestLib import xapi
 from XmTestLib import xapi
 from XmTestLib.XenAPIDomain import XmTestAPIDomain
 from XmTestLib import *
-from xen.xend import XendDomain
 from vtpm_utils import *
 import commands
 import os
@@ -28,7 +27,7 @@ vm_uuid = domain.get_uuid()
 vm_uuid = domain.get_uuid()
 
 vtpmcfg = {}
-vtpmcfg['backend'] = XendDomain.DOM0_UUID
+vtpmcfg['backend'] = DOM0_UUID
 vtpmcfg['VM'] = vm_uuid
 
 session = xapi.connect()

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Copy the definition of DOM0_UUID into XenDomain so that we don't need to import, Xen patchbot-unstable <=