[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21139] branches/soc-2009-jaguarandi/test/ html.py: little fix on script ( dividing by None when the reference build hadn't solved a test case)

André Pinto andresusanopinto at gmail.com
Wed Jun 24 21:38:40 CEST 2009


Revision: 21139
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21139
Author:   jaguarandi
Date:     2009-06-24 21:38:40 +0200 (Wed, 24 Jun 2009)

Log Message:
-----------
little fix on script (dividing by None when the reference build hadn't solved a test case)

Modified Paths:
--------------
    branches/soc-2009-jaguarandi/test/html.py

Modified: branches/soc-2009-jaguarandi/test/html.py
===================================================================
--- branches/soc-2009-jaguarandi/test/html.py	2009-06-24 19:29:48 UTC (rev 21138)
+++ branches/soc-2009-jaguarandi/test/html.py	2009-06-24 19:38:40 UTC (rev 21139)
@@ -98,7 +98,11 @@
 			return None
 		
 #		reference_time = min( map(get_runtime, valid_configs) )
-		reference_time = get_runtime(valid_configs[0])
+		reference_time = None
+		for conf in valid_configs:
+			reference_time = get_runtime(conf)
+			if reference_time != None:
+				break
 		
 		def print_run(run):
 			if run == None or run["result"] == test.TestRun.RESULT_NONE:





More information about the Bf-blender-cvs mailing list