From da9c0e9184a4a8b814effb48942063683ebb68b3 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 24 Apr 2007 15:01:13 +0100 Subject: 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 --- tools/xm-test/lib/XmTestLib/XenAPIDomain.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/xm-test') diff --git a/tools/xm-test/lib/XmTestLib/XenAPIDomain.py b/tools/xm-test/lib/XmTestLib/XenAPIDomain.py index 024d4a6b1f..d34d369f0f 100644 --- a/tools/xm-test/lib/XmTestLib/XenAPIDomain.py +++ b/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: -- cgit v1.2.3