[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.0.5-testing] xm-test: Scale memory parameter for tests using XenAPIDomain.
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1177423273 -3600 # Node ID ee56c8d8864b9b5406471e6cb088547d15d68a20 # Parent 837e3d8832a435bd440efaf04e6303dfcdffbf48 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@xxxxxxxxxx> --- tools/xm-test/lib/XmTestLib/XenAPIDomain.py | 2 ++ 1 files changed, 2 insertions(+) diff -r 837e3d8832a4 -r ee56c8d8864b tools/xm-test/lib/XmTestLib/XenAPIDomain.py --- a/tools/xm-test/lib/XmTestLib/XenAPIDomain.py Tue Apr 24 14:08:57 2007 +0100 +++ b/tools/xm-test/lib/XmTestLib/XenAPIDomain.py Tue Apr 24 15:01:13 2007 +0100 @@ -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: _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |