[pypy-svn] r75045 - pypy/benchmarks

arigo at codespeak.net arigo at codespeak.net
Thu Jun 3 14:54:16 CEST 2010


Author: arigo
Date: Thu Jun  3 14:54:15 2010
New Revision: 75045

Modified:
   pypy/benchmarks/saveresults.py
Log:
Hah.  In case of a server error, send() returns 1,
and its return value is happily ignored anyway.


Modified: pypy/benchmarks/saveresults.py
==============================================================================
--- pypy/benchmarks/saveresults.py	(original)
+++ pypy/benchmarks/saveresults.py	Thu Jun  3 14:54:15 2010
@@ -14,6 +14,7 @@
     #Parse data
     data = {}
     current_date = datetime.today()
+    error = 0
         
     for b in results:
         bench_name = b[0]
@@ -40,7 +41,9 @@
         if res_type == "ComparisonResult":
             data['std_dev'] = results['std_changed']
         if testing: testparams.append(data)
-        else: send(data)
+        else: error |= send(data)
+    if error:
+        raise IOError("Saving failed.  See messages above.")
     if testing: return testparams
     else: return 0
     



More information about the Pypy-commit mailing list