Beispiel #1
0
 def _haskeyword(self, keyword): 
     if keyword == 'core': 
         return self.parent.regrtest.core 
     if keyword not in ('error', 'ok', 'timeout'): 
         return super(ReallyRunFileExternal, self).haskeyword(keyword)
     if self._resultcache is None: 
         from pypy.tool.pytest.overview import ResultCache
         self.__class__._resultcache = rc = ResultCache() 
         rc.parselatest()
     result = self._resultcache.getlatestrelevant(self.fspath.purebasename)
     if not result: return False
     if keyword == 'timeout': return result.istimeout()
     if keyword == 'error': return result.iserror()
     if keyword == 'ok': return result.isok()
     assert False, "should not be there" 
Beispiel #2
0
 def setup_class(cls):
     if not testresultdir.check(dir=1):
         py.test.skip("testresult directory not checked out")
     cls.rc = ResultCache(testresultdir)
     cls.rc.parselatest()
Beispiel #3
0
 def __init__(self, resultdir):
     self.resultcache = ResultCache(resultdir)