[CalendarServer-changes] [1314] CalDAVTester/trunk/buildperformer.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Mar 5 13:28:58 PST 2007
Revision: 1314
http://trac.macosforge.org/projects/calendarserver/changeset/1314
Author: cdaboo at apple.com
Date: 2007-03-05 13:28:57 -0800 (Mon, 05 Mar 2007)
Log Message:
-----------
exit(1) when the test fails and print to stdout.
Modified Paths:
--------------
CalDAVTester/trunk/buildperformer.py
Modified: CalDAVTester/trunk/buildperformer.py
===================================================================
--- CalDAVTester/trunk/buildperformer.py 2007-03-05 20:11:44 UTC (rev 1313)
+++ CalDAVTester/trunk/buildperformer.py 2007-03-05 21:28:57 UTC (rev 1314)
@@ -22,6 +22,7 @@
#
import performer
+import sys
def human_readable(item, avg, stddev, total):
print "\t%s\t%.3f\t%.3f\t%.3f" % (item, avg, stddev, total)
@@ -37,6 +38,9 @@
for item in performs:
pinfo, result = performer.runIt(item, silent=True)
+ if result[0][0] == -1.0 or result[0][1] == -1.0 or result[0][2] == -1.0:
+ print "Failed: got result -1.0 for test script %s" % (item,)
+ sys.exit(1)
logger(item[item.rfind("/")+1:item.rfind(".")], result[0][0], result[0][1], result[0][2])
if __name__ == "__main__":
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070305/2b80082d/attachment.html
More information about the calendarserver-changes
mailing list