示例#1
0
文件: qa.py 项目: mrv-developers/mrv
 def _getMelChecks( metacls, index_proc, check_cls ):
     """
     :return: list( checkInstance, ... ) list of checkinstances represeting
         mel based checkes
     :param index_proc: method returning the index declaring the tests
     :param check_cls: class used to instance new checks"""
     output = list()
     try:
         index = Mel.call( index_proc )
     except RuntimeError, e:
         log.warn( str( e ) )
示例#2
0
文件: qa.py 项目: kthulhu/mrv
    def _getMelChecks(metacls, index_proc, check_cls):
        """
		:return: list( checkInstance, ... ) list of checkinstances represeting
			mel based checkes
		:param index_proc: method returning the index declaring the tests
		:param check_cls: class used to instance new checks"""
        output = list()
        try:
            index = Mel.call(index_proc)
        except RuntimeError, e:
            log.warn(str(e))
示例#3
0
文件: qa.py 项目: mrv-developers/mrv
    def handleMELCheck( self, check, mode ):
        """Called to handle the given check in the given mode
        
        :raise RuntimeError: If MEL throws an error
        :return: QACheckResult of the result generated by MEL"""
        assert self.mel_check_proc
        assert isinstance( check.attr, QAMELCheckAttribute )

        rval = Mel.call( self.mel_check_proc, check.name(), int( mode == self.eMode.fix ) )

        return self._rval_to_checkResult( rval )
示例#4
0
文件: qa.py 项目: kthulhu/mrv
    def handleMELCheck(self, check, mode):
        """Called to handle the given check in the given mode
		
		:raise RuntimeError: If MEL throws an error
		:return: QACheckResult of the result generated by MEL"""
        assert self.mel_check_proc
        assert isinstance(check.attr, QAMELCheckAttribute)

        rval = Mel.call(self.mel_check_proc, check.name(),
                        int(mode == self.eMode.fix))

        return self._rval_to_checkResult(rval)