direct-io.hg

changeset 13338:09e3072f71e6

I added a parameter '-md' to 'runtest.sh' for running the xm test suite
in a mode where all created domains a created as xend-managed domains.

This patch also fixes a problem related to calling 'xm domid' on a
currently suspended domain if that domain is a managed domain. In that
case a 'None' is returned by Xend, which I default to '-1'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author Ewan Mellor <ewan@xensource.com>
date Thu Jan 11 18:56:59 2007 +0000 (2007-01-11)
parents 7ce714d3a9ac
children 568ba07641c6
files tools/xm-test/lib/XmTestLib/Xm.py tools/xm-test/runtest.sh
line diff
     1.1 --- a/tools/xm-test/lib/XmTestLib/Xm.py	Thu Jan 11 18:55:18 2007 +0000
     1.2 +++ b/tools/xm-test/lib/XmTestLib/Xm.py	Thu Jan 11 18:56:59 2007 +0000
     1.3 @@ -49,6 +49,8 @@ def domid(name):
     1.4  
     1.5      if status != 0 or "Traceback" in output:
     1.6          return -1
     1.7 +    if output == "None":
     1.8 +        return -1
     1.9      try:
    1.10          return int(output)
    1.11      except:
     2.1 --- a/tools/xm-test/runtest.sh	Thu Jan 11 18:55:18 2007 +0000
     2.2 +++ b/tools/xm-test/runtest.sh	Thu Jan 11 18:56:59 2007 +0000
     2.3 @@ -16,6 +16,7 @@ usage() {
     2.4      echo "  -r <url>    : url of test results repository to use"
     2.5      echo "  -s <report> : just submit report <report>"
     2.6      echo "  -u          : unsafe -- do not run the sanity checks before starting"
     2.7 +    echo "  -md         : all created domains are xend-'managed' domains"
     2.8      echo "  -h | --help : show this help"
     2.9  }
    2.10  
    2.11 @@ -218,11 +219,14 @@ run=yes
    2.12  unsafe=no
    2.13  GROUPENTERED=default
    2.14  
    2.15 +#Prepare for usage with ACM
    2.16  if [ -d /etc/xen/acm-security/policies ]; then
    2.17  	cp -f tests/security-acm/xm-test-security_policy.xml \
    2.18  	      /etc/xen/acm-security/policies
    2.19  fi
    2.20  
    2.21 +unset XM_MANAGED_DOMAINS
    2.22 +
    2.23  # Resolve options
    2.24  while [ $# -gt 0 ]
    2.25    do
    2.26 @@ -260,6 +264,10 @@ while [ $# -gt 0 ]
    2.27  	  unsafe=yes
    2.28  	  report=no
    2.29  	  ;;
    2.30 +      -md)
    2.31 +          echo "(use managed domains)"
    2.32 +          export XM_MANAGED_DOMAINS=1
    2.33 +          ;;
    2.34        -h|--help)
    2.35            usage
    2.36            exit 0