[CalendarServer-changes] [11663] CalendarServer/trunk/testserver
source_changes at macosforge.org
source_changes at macosforge.org
Mon Sep 9 19:09:30 PDT 2013
Revision: 11663
http://trac.calendarserver.org//changeset/11663
Author: cdaboo at apple.com
Date: 2013-09-09 19:09:30 -0700 (Mon, 09 Sep 2013)
Log Message:
-----------
Enable random seed to be set.
Modified Paths:
--------------
CalendarServer/trunk/testserver
Modified: CalendarServer/trunk/testserver
===================================================================
--- CalendarServer/trunk/testserver 2013-09-09 22:47:12 UTC (rev 11662)
+++ CalendarServer/trunk/testserver 2013-09-10 02:09:30 UTC (rev 11663)
@@ -28,6 +28,7 @@
printres="";
subdir="";
random="--random";
+seed="";
usage ()
{
@@ -40,6 +41,7 @@
echo " -r Print request and response";
echo " -s Set the serverinfo.xml";
echo " -t Set the CalDAVTester directory";
+ echo " -x Random seed to use.";
echo " -v Verbose.";
if [ "${1-}" == "-" ]; then return 0; fi;
@@ -56,6 +58,7 @@
'r') printres="--always-print-request --always-print-response"; ;;
'v') verbose="v"; ;;
'o') random=""; ;;
+ 'x') seed="--random-seed ${OPTARG}"; ;;
esac;
done;
@@ -71,5 +74,5 @@
source "${wd}/support/shell.sh";
-cd "${cdt}" && "${python}" testcaldav.py ${random} --print-details-onfail ${printres} -s "${serverinfo}" ${subdir} "$@";
+cd "${cdt}" && "${python}" testcaldav.py ${random} ${seed} --print-details-onfail ${printres} -s "${serverinfo}" ${subdir} "$@";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130909/99945df9/attachment-0001.html>
More information about the calendarserver-changes
mailing list