WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.0.5-testing] xm-test: Scale memory parameter for

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.0.5-testing] xm-test: Scale memory parameter for tests using XenAPIDomain.
From: "Xen patchbot-3.0.5-testing" <patchbot-3.0.5-testing@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 25 Apr 2007 08:40:36 -0700
Delivery-date: Wed, 25 Apr 2007 09:23:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.0.5-testing] xm-test: Scale memory parameter for tests using XenAPIDomain., Xen patchbot-3.0.5-testing <=