[CalendarServer-changes] [1384] CalendarServer/trunk/test
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 14 13:21:45 PDT 2007
Revision: 1384
http://trac.macosforge.org/projects/calendarserver/changeset/1384
Author: dreid at apple.com
Date: 2007-03-14 13:21:45 -0700 (Wed, 14 Mar 2007)
Log Message:
-----------
Add support for trial's --until-failure option and make random the default adding a -o option for specifying 'Ordered execution'
Modified Paths:
--------------
CalendarServer/trunk/test
Modified: CalendarServer/trunk/test
===================================================================
--- CalendarServer/trunk/test 2007-03-14 18:48:16 UTC (rev 1383)
+++ CalendarServer/trunk/test 2007-03-14 20:21:45 UTC (rev 1384)
@@ -18,6 +18,8 @@
# DRI: Wilfredo Sanchez, wsanchez at apple.com
##
+random="--random=$(date "+%s")";
+
usage ()
{
program="$(basename "$0")";
@@ -28,18 +30,20 @@
echo "Options:";
echo " -h Print this help and exit";
echo " -n Do not use color";
- echo " -r Run tests in random order";
+ echo " -o Do not run tests in random order.";
+ echo " -u Run until the tests fail.";
if [ "${1-}" == "-" ]; then return 0; fi;
exit 64;
}
-while getopts "nhr" option; do
+while getopts "nhou" option; do
case "${option}" in
'?') usage; ;;
'h') usage -; exit 0; ;;
'n') no_colour="--reporter=bwverbose"; ;;
- 'r') random="--random=$(date "+%s")"; ;;
+ 'o') random=""; ;;
+ 'u') until_fail="--until-failure"; ;;
esac;
done;
shift $((${OPTIND} - 1));
@@ -57,4 +61,4 @@
test_modules="twistedcaldav";
fi;
-cd "${wd}" && "${twisted}/bin/trial" ${random} ${no_colour} ${test_modules};
+cd "${wd}" && "${twisted}/bin/trial" ${random} ${until_fail} ${no_colour} ${test_modules};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070314/56ae8d01/attachment.html
More information about the calendarserver-changes
mailing list