Update Samba build farm to new web site layout.
[build-farm.git] / tools / fix.py
index fd257a598606fe09b6b4ae8c5970cef3112fed95..272e16dd24c4ae1195c48be855d4cd07680dd918 100755 (executable)
@@ -1,5 +1,6 @@
 #!/usr/bin/python
 
+import bz2
 import os
 import sys
 sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
@@ -8,13 +9,15 @@ from buildfarm.build import (
     build_status_from_logs,
     LogFileMissing,
     MissingRevisionInfo,
+    NoTestOutput,
     revision_from_log,
+    extract_test_output,
     )
 from buildfarm.hostdb import NoSuchHost
 
-from buildfarm.sqldb import StormCachingBuildFarm, StormBuild
+from buildfarm import BuildFarm, StormBuild
 
-buildfarm = StormCachingBuildFarm()
+buildfarm = BuildFarm()
 
 store = buildfarm._get_store()
 
@@ -45,7 +48,7 @@ for build in store.find(StormBuild, StormBuild.revision == None):
         build.remove()
         continue
     try:
-        (revision, revision_time) = revision_from_log(log)
+        revision = revision_from_log(log)
     except MissingRevisionInfo:
         continue
     assert revision
@@ -58,4 +61,5 @@ for build in store.find(StormBuild, StormBuild.host_id == None):
     except NoSuchHost, e:
         print "Unable to find host %s" % e.name
 
+
 buildfarm.commit()