Beispiel #1
0
 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 ) )
Beispiel #2
0
Datei: qa.py Projekt: 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))
Beispiel #3
0
    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 )
Beispiel #4
0
Datei: qa.py Projekt: 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)