[CalendarServer-changes] [15357] CalendarServer/trunk/bin

source_changes at macosforge.org source_changes at macosforge.org
Wed Dec 2 13:38:47 PST 2015


Revision: 15357
          http://trac.calendarserver.org//changeset/15357
Author:   cdaboo at apple.com
Date:     2015-12-02 13:38:47 -0800 (Wed, 02 Dec 2015)
Log Message:
-----------
More script fixes.

Modified Paths:
--------------
    CalendarServer/trunk/bin/testpodssim
    CalendarServer/trunk/bin/testsim

Modified: CalendarServer/trunk/bin/testpodssim
===================================================================
--- CalendarServer/trunk/bin/testpodssim	2015-12-02 21:18:58 UTC (rev 15356)
+++ CalendarServer/trunk/bin/testpodssim	2015-12-02 21:38:47 UTC (rev 15357)
@@ -54,17 +54,13 @@
   case "$option" in
     '?') usage; ;;
     'h') usage -; exit 0; ;;
-    'r') runtime="--runtime ${OPTARG}"; ;;
-    'l') logfile="--logfile ${OPTARG}"; ;;
+    'r') runtime="--runtime=${OPTARG}"; ;;
+    'l') logfile="--logfile=${OPTARG}"; ;;
   esac;
 done;
 
 shift $((${OPTIND} - 1));
 
-if [ $# = 0 ]; then
-  set - "--all";
-fi;
-
 ##
 # Do The Right Thing
 ##
@@ -154,7 +150,7 @@
 echo ""
 echo "Starting Sim run"
 
-"${python}" "${sim}" --config "${config}" --clients "${clients}" ${runtime} "${logfile}"
+"${python}" "${sim}" --config "${config}" --clients "${clients}" "${runtime}" "${logfile}"
 
 # Capture exit status of sim.py to use as this script's exit status.
 

Modified: CalendarServer/trunk/bin/testsim
===================================================================
--- CalendarServer/trunk/bin/testsim	2015-12-02 21:18:58 UTC (rev 15356)
+++ CalendarServer/trunk/bin/testsim	2015-12-02 21:38:47 UTC (rev 15357)
@@ -54,8 +54,8 @@
   case "$option" in
     '?') usage; ;;
     'h') usage -; exit 0; ;;
-    'r') runtime="--runtime ${OPTARG}"; ;;
-    'l') logfile="--logfile ${OPTARG}"; ;;
+    'r') runtime="--runtime=${OPTARG}"; ;;
+    'l') logfile="--logfile=${OPTARG}"; ;;
   esac;
 done;
 
@@ -127,7 +127,7 @@
 
 echo "Starting Sim run"
 
-"${python}" "${sim}" --config "${config}" --clients "${clients}" ${runtime} "${logfile}"
+"${python}" "${sim}" --config "${config}" --clients "${clients}" "${runtime}" "${logfile}"
 
 # Capture exit status of sim.py to use as this script's exit status.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20151202/2aeccea1/attachment.html>


More information about the calendarserver-changes mailing list