From: Stefan Berger <stefanb@us.ibm.com>
To: Xen-devel <xen-devel@lists.xensource.com>
Cc: ewan@xensource.com
Subject: [PATCH] [Xm-TEST] Run tests with managed domains and fix of a bug related to 'xm domid'
Date: Wed, 10 Jan 2007 16:48:24 -0500 [thread overview]
Message-ID: <1168465704.25229.4.camel@lt2.watson.ibm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 395 bytes --]
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>
[-- Attachment #2: xm-mgt-domain.diff --]
[-- Type: text/x-patch, Size: 1584 bytes --]
Index: root/xen-unstable.hg/tools/xm-test/runtest.sh
===================================================================
--- root.orig/xen-unstable.hg/tools/xm-test/runtest.sh
+++ root/xen-unstable.hg/tools/xm-test/runtest.sh
@@ -16,6 +16,7 @@ usage() {
echo " -r <url> : url of test results repository to use"
echo " -s <report> : just submit report <report>"
echo " -u : unsafe -- do not run the sanity checks before starting"
+ echo " -md : all created domains are xend-'managed' domains"
echo " -h | --help : show this help"
}
@@ -218,11 +219,14 @@ run=yes
unsafe=no
GROUPENTERED=default
+#Prepare for usage with ACM
if [ -d /etc/xen/acm-security/policies ]; then
cp -f tests/security-acm/xm-test-security_policy.xml \
/etc/xen/acm-security/policies
fi
+unset XM_MANAGED_DOMAINS
+
# Resolve options
while [ $# -gt 0 ]
do
@@ -260,6 +264,10 @@ while [ $# -gt 0 ]
unsafe=yes
report=no
;;
+ -md)
+ echo "(use managed domains)"
+ export XM_MANAGED_DOMAINS=1
+ ;;
-h|--help)
usage
exit 0
Index: root/xen-unstable.hg/tools/xm-test/lib/XmTestLib/Xm.py
===================================================================
--- root.orig/xen-unstable.hg/tools/xm-test/lib/XmTestLib/Xm.py
+++ root/xen-unstable.hg/tools/xm-test/lib/XmTestLib/Xm.py
@@ -49,6 +49,8 @@ def domid(name):
if status != 0 or "Traceback" in output:
return -1
+ if output == "None":
+ return -1
try:
return int(output)
except:
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2007-01-10 21:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-10 21:48 Stefan Berger [this message]
2007-01-11 19:00 ` [PATCH] [Xm-TEST] Run tests with managed domains and fix of a bug related to 'xm domid' Ewan Mellor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1168465704.25229.4.camel@lt2.watson.ibm.com \
--to=stefanb@us.ibm.com \
--cc=ewan@xensource.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.