aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-04-24 15:01:13 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-04-24 15:01:13 +0100
commitda9c0e9184a4a8b814effb48942063683ebb68b3 (patch)
tree196246cc5404fa5cbb225155e6c64762f2b742a8 /tools/xm-test
parent5de75dc199c66f7bd279dc3b5a7f7ae8655a6d24 (diff)
downloadxen-da9c0e9184a4a8b814effb48942063683ebb68b3.tar.gz
xen-da9c0e9184a4a8b814effb48942063683ebb68b3.tar.bz2
xen-da9c0e9184a4a8b814effb48942063683ebb68b3.zip
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>
Diffstat (limited to 'tools/xm-test')
-rw-r--r--tools/xm-test/lib/XmTestLib/XenAPIDomain.py2
1 files changed, 2 insertions, 0 deletions
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: