[CalendarServer-changes] [1313] CalDAVTester/trunk/performer.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Mar 5 12:11:44 PST 2007


Revision: 1313
          http://trac.macosforge.org/projects/calendarserver/changeset/1313
Author:   cdaboo at apple.com
Date:     2007-03-05 12:11:44 -0800 (Mon, 05 Mar 2007)

Log Message:
-----------
Return -1.0 for all timings when there is a protocol/server failure.

Modified Paths:
--------------
    CalDAVTester/trunk/performer.py

Modified: CalDAVTester/trunk/performer.py
===================================================================
--- CalDAVTester/trunk/performer.py	2007-03-05 20:11:04 UTC (rev 1312)
+++ CalDAVTester/trunk/performer.py	2007-03-05 20:11:44 UTC (rev 1313)
@@ -108,6 +108,7 @@
     allresults = []
     
     for test in pinfo.tests:
+        failed = [False]
         result = [0.0, 0.0, 0.0]
         if not silent:
             print "|",
@@ -127,6 +128,8 @@
                 try:
                     mgr = manager(level=manager.LOG_NONE)
                     result, timing = mgr.runWithOptions(*args[1:], **args[0])
+                    if result > 0:
+                        failed[0] = True
                     results.append(timing)
                     if pinfo.logging:
                         print "Done: %s" % (args[0]["moresubs"]["$userid1:"],)
@@ -188,6 +191,9 @@
         result[1] /= test[2]
         result[2] /= test[2]
         
+        if failed[0]:
+            result = [-1.0, -1.0, -1.0]
+            
         allresults.append(result)
 
     if not silent:

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


More information about the calendarserver-changes mailing list