[CalendarServer-changes] [2236] CalendarServer/branches/users/wsanchez/twisted-update/test

source_changes at macosforge.org source_changes at macosforge.org
Mon Mar 17 19:42:00 PDT 2008


Revision: 2236
          http://trac.macosforge.org/projects/calendarserver/changeset/2236
Author:   wsanchez at apple.com
Date:     2008-03-17 19:41:59 -0700 (Mon, 17 Mar 2008)

Log Message:
-----------
Add -s flag

Modified Paths:
--------------
    CalendarServer/branches/users/wsanchez/twisted-update/test

Modified: CalendarServer/branches/users/wsanchez/twisted-update/test
===================================================================
--- CalendarServer/branches/users/wsanchez/twisted-update/test	2008-03-18 01:14:02 UTC (rev 2235)
+++ CalendarServer/branches/users/wsanchez/twisted-update/test	2008-03-18 02:41:59 UTC (rev 2236)
@@ -31,22 +31,24 @@
 
   if [ "${1--}" != "-" ]; then echo "$@"; echo; fi;
 
-  echo "Usage: ${program} [options]";
+  echo "Usage: ${program} [options] [-s seed]";
   echo "Options:";
   echo "        -h  Print this help and exit";
   echo "        -n  Do not use color";
-  echo "        -o  Do not run tests in random order.";
-  echo "        -u  Run until the tests fail.";
+  echo "        -o  Do not run tests in random order";
+  echo "        -u  Run until the tests fail";
+  echo "	-s  Specify random seed";
 
   if [ "${1-}" == "-" ]; then return 0; fi;
   exit 64;
 }
 
-while getopts "nhou" option; do
+while getopts "nhous:" option; do
   case "${option}" in
     '?') usage; ;;
     'h') usage -; exit 0; ;;
     'o')     random=""; ;;
+    's')     random="--random=${OPTARG}"; ;;
     'n')  no_colour="--reporter=bwverbose"; ;;
     'u') until_fail="--until-failure"; ;;
   esac;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080317/ecd41fb6/attachment.html 


More information about the calendarserver-changes mailing list