BuildScript/scripts/TouchinBuild/parsers/ParserBackup/RestoreBackupParser.py

17 lines
435 B
Python

import re
from parsers.ParserBackup.ParserBackupBase import ParserBackupBase
class RestoreBackupParser(ParserBackupBase):
def __init__(self):
ParserBackupBase.__init__(self)
def getMatchInfo(self, line):
assert line is not None
regexpSource = self.startsWith('restore') + self.than('from') + self.endsWith('backup')
regexp = re.compile(regexpSource, re.UNICODE)
match = regexp.match(line)
return match, regexpSource