From: Stefan Berger Subject: [PATCH] [XM-TEST] Scale memory parameter for tests using XenAPIDomain Date: Fri, 20 Apr 2007 11:09:03 -0400 Message-ID: <1177081743.2719.2.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-Jp1xFrUHCLNU65YkZLJP" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Ewan Mellor List-Id: xen-devel@lists.xenproject.org --=-Jp1xFrUHCLNU65YkZLJP Content-Type: text/plain Content-Transfer-Encoding: 7bit Scale the memory parameter for domains using the XenAPIDomain to create a domain. Those domains use the normal configuration where the memory parameter is given in 'Mb', so it needs to be adapted to 'bytes'. Signed-off-by: Stefan Berger --=-Jp1xFrUHCLNU65YkZLJP Content-Disposition: attachment; filename=xmtest_xapi_scale_memory.diff Content-Type: text/x-patch; name=xmtest_xapi_scale_memory.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/xm-test/lib/XmTestLib/XenAPIDomain.py =================================================================== --- root.orig/xen-unstable.hg/tools/xm-test/lib/XmTestLib/XenAPIDomain.py +++ root/xen-unstable.hg/tools/xm-test/lib/XmTestLib/XenAPIDomain.py @@ -41,6 +41,8 @@ class XenAPIConfig: def setOpt(self, name, value): """Set an option in the config""" + if name == "memory": + value <<= 20 if name in self.opttrlate.keys(): _name = self.opttrlate[name] else: --=-Jp1xFrUHCLNU65YkZLJP Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-Jp1xFrUHCLNU65YkZLJP--