aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test/runtest.sh
diff options
context:
space:
mode:
authorpl@us.ibm.com <pl@us.ibm.com>2006-03-21 01:19:24 +0100
committerpl@us.ibm.com <pl@us.ibm.com>2006-03-21 01:19:24 +0100
commit452c180f44d3406ca8f412d9650971162fb24775 (patch)
tree9f541c55ebb348503282e25abf0ed5c1b20d1416 /tools/xm-test/runtest.sh
parent29cd655b8549a862d0db6ef315c2a9e829329c6d (diff)
downloadxen-452c180f44d3406ca8f412d9650971162fb24775.tar.gz
xen-452c180f44d3406ca8f412d9650971162fb24775.tar.bz2
xen-452c180f44d3406ca8f412d9650971162fb24775.zip
Add an option to xmtest to report results to an alternative results repository.
The default is preserved but can be overridden by either passing it with -r to runtest.sh or by setting the xmtest_repo environment variable. Signed-off-by: Paul Larson <pl@us.ibm.com>
Diffstat (limited to 'tools/xm-test/runtest.sh')
-rwxr-xr-xtools/xm-test/runtest.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/xm-test/runtest.sh b/tools/xm-test/runtest.sh
index f35e9ca45a..2cedec6440 100755
--- a/tools/xm-test/runtest.sh
+++ b/tools/xm-test/runtest.sh
@@ -13,6 +13,7 @@ usage() {
echo " -b : do not ask any questions (batch mode)"
echo " -g : run a group test set"
echo " -e <email> : set email address for report"
+ echo " -r <url> : url of test results repository to use"
echo " -s <report> : just submit report <report>"
echo " -h | --help : show this help"
}
@@ -22,7 +23,7 @@ submit_report() {
reportfile=$1
- ./lib/XmTestReport/Report.py $reportfile
+ ./lib/XmTestReport/Report.py $reportserver $reportfile
}
# Generate XML result report from output file
@@ -189,6 +190,7 @@ EOF
# Defaults
MAXFAIL=10
report=yes
+reportserver=${xmtest_repo:-'http://xmtest.dague.org/cgi-bin/report-results'}
batch=no
run=yes
GROUPENTERED=default
@@ -218,6 +220,10 @@ while [ $# -gt 0 ]
exit 1
fi
;;
+ -r)
+ shift
+ reportserver=$1
+ ;;
-s)
run=no
;;