ia64/xen-unstable

changeset 14909:ee56c8d8864b

xm-test: Scale memory parameter for tests using XenAPIDomain.

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 <stefanb@us.ibm.com>
author kfraser@localhost.localdomain
date Tue Apr 24 15:01:13 2007 +0100 (2007-04-24)
parents 837e3d8832a4
children 4bbc509a0b3f
files tools/xm-test/lib/XmTestLib/XenAPIDomain.py
line diff
     1.1 --- a/tools/xm-test/lib/XmTestLib/XenAPIDomain.py	Tue Apr 24 14:08:57 2007 +0100
     1.2 +++ b/tools/xm-test/lib/XmTestLib/XenAPIDomain.py	Tue Apr 24 15:01:13 2007 +0100
     1.3 @@ -41,6 +41,8 @@ class XenAPIConfig:
     1.4  
     1.5      def setOpt(self, name, value):
     1.6          """Set an option in the config"""
     1.7 +        if name == "memory":
     1.8 +            value <<= 20
     1.9          if name in self.opttrlate.keys():
    1.10              _name = self.opttrlate[name]
    1.11          else: