add function to get the lcov cache status on a build store
authorMatthieu Patou <mat@matws.net>
Wed, 10 Nov 2010 23:41:16 +0000 (02:41 +0300)
committerMatthieu Patou <mat@matws.net>
Wed, 10 Nov 2010 23:43:08 +0000 (02:43 +0300)
buildfarm/data.py

index 493badb2643f1c82fbdacf38a20ce08372ed3601..f709422a4d6e199c8683a98e4d851f689ebd8606 100644 (file)
@@ -396,6 +396,9 @@ class BuildResultStore(object):
         """
         self.path = path
 
+    def get_lcov_cached_status(self, host, tree):
+        return None
+
     def get_build(self, tree, host, compiler, rev):
         logf = self.build_fname(tree, host, compiler, rev) + ".log"
         if not os.path.exists(logf):
@@ -477,5 +480,7 @@ class CachingBuildResultStore(BuildResultStore):
     def cache_fname(self, tree, host, compiler, rev):
         return os.path.join(self.cachedir, "build.%s.%s.%s-%s" % (tree, host, compiler, rev))
 
+    def get_lcov_cached_status(self, host, tree):
+        return os.path.join(self.cachedir, "lcov.%s.%s.status" % (host, tree))