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-unstable] [XM-TEST] Relax craete_mem*_pos checks to

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XM-TEST] Relax craete_mem*_pos checks to allow a 2MB less than
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 09 Nov 2006 18:40:25 +0000
Delivery-date: Thu, 09 Nov 2006 10:41:39 -0800
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 Alastair Tse <atse@xxxxxxxxxxxxx>
# Node ID 3b8c07bd098012e9020a0249723ca179741b13f5
# Parent  de7c20b6eaae7b9ac71eb3b63b5bff5b6d6a5220
[XM-TEST] Relax craete_mem*_pos checks to allow a 2MB less than
expected.

Now that xm list outputs the real system memory allocation, this can
be 1-2MB less than expected.

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
 tools/xm-test/tests/create/07_create_mem64_pos.py  |    2 +-
 tools/xm-test/tests/create/08_create_mem128_pos.py |    2 +-
 tools/xm-test/tests/create/09_create_mem256_pos.py |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff -r de7c20b6eaae -r 3b8c07bd0980 
tools/xm-test/tests/create/07_create_mem64_pos.py
--- a/tools/xm-test/tests/create/07_create_mem64_pos.py Thu Nov 09 16:05:00 
2006 +0000
+++ b/tools/xm-test/tests/create/07_create_mem64_pos.py Thu Nov 09 16:20:26 
2006 +0000
@@ -42,7 +42,7 @@ if eyecatcher1 != "True":
        FAIL("Failed to verify that a 64MB domain started")
 
 eyecatcher2 = getDomMem(domain_mem64.getName())
-if eyecatcher2 != 64:
+if eyecatcher2 not in range(62, 65):
        FAIL("Started domain with 64MB, but it got %i MB" % eyecatcher2)
 
 #stop the domain (nice shutdown)
diff -r de7c20b6eaae -r 3b8c07bd0980 
tools/xm-test/tests/create/08_create_mem128_pos.py
--- a/tools/xm-test/tests/create/08_create_mem128_pos.py        Thu Nov 09 
16:05:00 2006 +0000
+++ b/tools/xm-test/tests/create/08_create_mem128_pos.py        Thu Nov 09 
16:20:26 2006 +0000
@@ -42,7 +42,7 @@ if eyecatcher1 != "True":
        FAIL("Failed to verify that a 128MB domain started")
 
 eyecatcher2 = getDomMem(domain_mem128.getName())
-if eyecatcher2 != 128:
+if eyecatcher2 not in range(126, 129):
        FAIL("Started domain with 128MB, but it got %i MB" % eyecatcher2)
 
 #stop the domain (nice shutdown)
diff -r de7c20b6eaae -r 3b8c07bd0980 
tools/xm-test/tests/create/09_create_mem256_pos.py
--- a/tools/xm-test/tests/create/09_create_mem256_pos.py        Thu Nov 09 
16:05:00 2006 +0000
+++ b/tools/xm-test/tests/create/09_create_mem256_pos.py        Thu Nov 09 
16:20:26 2006 +0000
@@ -42,7 +42,7 @@ if eyecatcher1 != "True":
        FAIL("Failed to verify that a 256MB domain started")
 
 eyecatcher2 = getDomMem(domain_mem256.getName())
-if eyecatcher2 != 256:
+if eyecatcher2 not in range(254, 257):
        FAIL("Started domain with 256MB, but it got %i MB" % eyecatcher2)
 
 #stop the domain (nice shutdown)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XM-TEST] Relax craete_mem*_pos checks to allow a 2MB less than, Xen patchbot-unstable <=