ia64/xen-unstable
changeset 12345:3b8c07bd0980
[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@xensource.com>
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@xensource.com>
author | Alastair Tse <atse@xensource.com> |
---|---|
date | Thu Nov 09 16:20:26 2006 +0000 (2006-11-09) |
parents | de7c20b6eaae |
children | d293b17cd1c4 |
files | tools/xm-test/tests/create/07_create_mem64_pos.py tools/xm-test/tests/create/08_create_mem128_pos.py tools/xm-test/tests/create/09_create_mem256_pos.py |
line diff
1.1 --- a/tools/xm-test/tests/create/07_create_mem64_pos.py Thu Nov 09 16:05:00 2006 +0000 1.2 +++ b/tools/xm-test/tests/create/07_create_mem64_pos.py Thu Nov 09 16:20:26 2006 +0000 1.3 @@ -42,7 +42,7 @@ if eyecatcher1 != "True": 1.4 FAIL("Failed to verify that a 64MB domain started") 1.5 1.6 eyecatcher2 = getDomMem(domain_mem64.getName()) 1.7 -if eyecatcher2 != 64: 1.8 +if eyecatcher2 not in range(62, 65): 1.9 FAIL("Started domain with 64MB, but it got %i MB" % eyecatcher2) 1.10 1.11 #stop the domain (nice shutdown)
2.1 --- a/tools/xm-test/tests/create/08_create_mem128_pos.py Thu Nov 09 16:05:00 2006 +0000 2.2 +++ b/tools/xm-test/tests/create/08_create_mem128_pos.py Thu Nov 09 16:20:26 2006 +0000 2.3 @@ -42,7 +42,7 @@ if eyecatcher1 != "True": 2.4 FAIL("Failed to verify that a 128MB domain started") 2.5 2.6 eyecatcher2 = getDomMem(domain_mem128.getName()) 2.7 -if eyecatcher2 != 128: 2.8 +if eyecatcher2 not in range(126, 129): 2.9 FAIL("Started domain with 128MB, but it got %i MB" % eyecatcher2) 2.10 2.11 #stop the domain (nice shutdown)
3.1 --- a/tools/xm-test/tests/create/09_create_mem256_pos.py Thu Nov 09 16:05:00 2006 +0000 3.2 +++ b/tools/xm-test/tests/create/09_create_mem256_pos.py Thu Nov 09 16:20:26 2006 +0000 3.3 @@ -42,7 +42,7 @@ if eyecatcher1 != "True": 3.4 FAIL("Failed to verify that a 256MB domain started") 3.5 3.6 eyecatcher2 = getDomMem(domain_mem256.getName()) 3.7 -if eyecatcher2 != 256: 3.8 +if eyecatcher2 not in range(254, 257): 3.9 FAIL("Started domain with 256MB, but it got %i MB" % eyecatcher2) 3.10 3.11 #stop the domain (nice shutdown)