ia64/xen-unstable

changeset 17163:35f4f285762f

xm-test: Have domains deleted if they are managed domains

Have the domains deleted if they are managed by xend and the tests are
run with '-md' as parameter to runtest.sh.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Mar 03 10:54:24 2008 +0000 (2008-03-03)
parents 5ea409d66ee4
children 8d2e77f0bcd0
files tools/xm-test/tests/security-acm/10_security-acm_pol_update.py
line diff
     1.1 --- a/tools/xm-test/tests/security-acm/10_security-acm_pol_update.py	Mon Mar 03 10:53:43 2008 +0000
     1.2 +++ b/tools/xm-test/tests/security-acm/10_security-acm_pol_update.py	Mon Mar 03 10:54:24 2008 +0000
     1.3 @@ -51,7 +51,7 @@ try:
     1.4      domain_ul.start(noConsole=True)
     1.5      FAIL("Could start unlabeled domain.")
     1.6  except DomainError, e:
     1.7 -    pass
     1.8 +    domain_ul.destroy()   # delete if xend-managed domain
     1.9  
    1.10  
    1.11  config = {"access_control":"policy=%s,label=%s" % (testpolicy,testlabel1)}
    1.12 @@ -246,7 +246,7 @@ try:
    1.13      domain_red.start(noConsole=True)
    1.14      FAIL("Could start 'red' domain.")
    1.15  except DomainError, e:
    1.16 -    pass
    1.17 +    domain_red.destroy()  # delete if xend-managed domain
    1.18  
    1.19  # Terminate GREEN domain
    1.20  domain_green.destroy()