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/
Home Products Support Community News


[Xen-changelog] [xen-unstable] xm-test: Scale memory parameter for tests

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xm-test: Scale memory parameter for tests using XenAPIDomain.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 24 Apr 2007 10:50:25 -0700
Delivery-date: Tue, 24 Apr 2007 11:22:58 -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

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]

Xen-changelog mailing list

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