示例#1
0
    def commandComplete(self, cmd):
        Test.commandComplete(self, cmd)

        logText = cmd.logs['stdio'].getText()
        self.totalLeakLines = [line for line in logText.splitlines() if line.find('total leaks found!') >= 0]
        self.totalLeakLines += [line for line in logText.splitlines() if line.find('LEAK: ') >= 0]
        self.totalLeakLines = [' '.join(x.split()[1:]) for x in self.totalLeakLines]
示例#2
0
    def commandComplete(self, cmd):
        Test.commandComplete(self, cmd)

        logText = cmd.logs['stdio'].getText()
        statusLines = [line for line in logText.splitlines() if line.find('regression') >= 0 and line.find(' found.') >= 0]
        if statusLines and statusLines[0].split()[0] != '0':
            self.regressionLine = statusLines[0]
        else:
            self.regressionLine = None
示例#3
0
文件: steps.py 项目: acss/owb-mirror
 def commandComplete(self, cmd):
     Test.commandComplete(self, cmd)
     
     logText = cmd.logs['stdio'].getText()
     incorrectLayoutLines = [line for line in logText.splitlines() if line.find('had incorrect layout') >= 0 or (line.find('test case') >= 0 and line.find(' crashed') >= 0)]
     if incorrectLayoutLines:
         self.incorrectLayoutLines = incorrectLayoutLines
     else:
         self.incorrectLayoutLines = None
示例#4
0
 def commandComplete(self, cmd):
     Test.commandComplete(self, cmd)
     
     logText = cmd.logs['stdio'].getText()
     incorrectLayoutLines = [line for line in logText.splitlines() if line.find('had incorrect layout') >= 0]
     if incorrectLayoutLines:
         self.incorrectLayoutLine = incorrectLayoutLines[0]
     else:
         self.incorrectLayoutLine = None
示例#5
0
    def commandComplete(self, cmd):
        Test.commandComplete(self, cmd)

        logText = cmd.logs['stdio'].getText()
        incorrectLayoutLines = [
            line for line in logText.splitlines()
            if line.find('had incorrect layout') >= 0 or (
                line.find('test case') >= 0 and
                (line.find(' crashed') >= 0 or line.find(' timed out') >= 0))
        ]
        self.incorrectLayoutLines = incorrectLayoutLines
示例#6
0
    def commandComplete(self, cmd):
        Test.commandComplete(self, cmd)

        logText = cmd.logs['stdio'].getText()
        statusLines = [
            line for line in logText.splitlines()
            if line.find('regression') >= 0 and line.find(' found.') >= 0
        ]
        if statusLines and statusLines[0].split()[0] != '0':
            self.regressionLine = statusLines[0]
        else:
            self.regressionLine = None
示例#7
0
    def commandComplete(self, cmd):
        Test.commandComplete(self, cmd)

        logText = cmd.logs['stdio'].getText()
        incorrectLayoutLines = [
            line for line in logText.splitlines()
            if line.find('had incorrect layout') >= 0
        ]
        if incorrectLayoutLines:
            self.incorrectLayoutLine = incorrectLayoutLines[0]
        else:
            self.incorrectLayoutLine = None
示例#8
0
    def commandComplete(self, cmd):
        Test.commandComplete(self, cmd)

        logText = cmd.logs['stdio'].getText()
        self.totalLeakLines = [
            line for line in logText.splitlines()
            if line.find('total leaks found!') >= 0
        ]
        self.totalLeakLines += [
            line for line in logText.splitlines() if line.find('LEAK: ') >= 0
        ]
        self.totalLeakLines = [
            ' '.join(x.split()[1:]) for x in self.totalLeakLines
        ]
示例#9
0
 def __init__(self, *args, **kwargs):
     UploadCommand.__init__(self, *args, **kwargs)
     self.command = self.command + [
         '--upload-results', self.getRemotePath()
     ]
     Test.__init__(self, *args, **kwargs)
示例#10
0
 def __init__(self, *args, **kwargs):
     UploadCommand.__init__(self, *args, **kwargs)
     self.command = self.command + ['--upload-results', self.getRemotePath()]
     Test.__init__(self, *args, **kwargs)