[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [XM-TEST] Relax craete_mem*_pos checks to allow a 2MB less than



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.