ia64/xen-unstable

changeset 8142:b21b476f5cb7

Fix the reporting when this test fails (the eyecatcher variables would not be
created if the domain creation actually succeeded). Use total_memory not
free_memory to determine how big to make the domain -- when ballooning down of
dom0 works properly, creating a domain larger than free_memory is possible.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Wed Nov 30 18:55:09 2005 +0000 (2005-11-30)
parents 69df979de1a7
children a12ec604308f
files tools/xm-test/tests/create/06_create_mem_neg.py
line diff
     1.1 --- a/tools/xm-test/tests/create/06_create_mem_neg.py	Wed Nov 30 18:48:27 2005 +0000
     1.2 +++ b/tools/xm-test/tests/create/06_create_mem_neg.py	Wed Nov 30 18:55:09 2005 +0000
     1.3 @@ -31,6 +31,7 @@ domain1=XenDomain(opts1)
     1.4  
     1.5  try:
     1.6      domain1.start()
     1.7 +    eyecatcher1 = "Created"
     1.8  except DomainError, e:
     1.9      eyecatcher1 = "Fail"
    1.10  
    1.11 @@ -41,7 +42,7 @@ if eyecatcher1 != "Fail":
    1.12  
    1.13  # Test 2: create a domain with mem>sys_mem
    1.14  
    1.15 -mem = int(getInfo("free_memory"))
    1.16 +mem = int(getInfo("total_memory"))
    1.17  extreme_mem = str(mem + 100)
    1.18  
    1.19  opts2=  {
    1.20 @@ -56,6 +57,7 @@ domain2=XenDomain(opts2)
    1.21  
    1.22  try:
    1.23      domain2.start()
    1.24 +    eyecatcher2 = "Created"
    1.25  except DomainError, e:
    1.26      eyecatcher2 = "Fail"
    1.27