def __init__(self): self.test_list = TestDict() self.forced_test_list = [] self.filters = [] self.options = { 'dmesg': get_dmesg(False), 'monitor': Monitoring(False), }
def __init__(self, filename): self.filename = filename self.forced_test_list = [] self.filters = [] self.options = { 'dmesg': get_dmesg(False), 'monitor': Monitoring(False), 'ignore_missing': False, }
def monitoring(self, monitored): """ Set monitoring Arguments: monitored -- if Truthy Monitoring will enable monitoring according the defined rules """ self._monitoring = Monitoring(monitored)
def __init__(self, filename): self.forced_test_list = [] self.filters = [] self.options = { 'dmesg': get_dmesg(False), 'monitor': Monitoring(False), 'ignore_missing': False, } tree = et.parse(filename) root = tree.getroot() self._profiles = [ load_test_profile(p.text) for p in root.findall('.//Profile') ] for p in self._profiles: p.options = self.options