Exemple #1
0
 def __init__(self):
     self.test_list = TestDict()
     self.forced_test_list = []
     self.filters = []
     self.options = {
         'dmesg': get_dmesg(False),
         'monitor': Monitoring(False),
     }
Exemple #2
0
 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,
     }
Exemple #3
0
    def monitoring(self, monitored):
        """ Set monitoring

        Arguments:
        monitored -- if Truthy Monitoring will enable monitoring according the
                     defined rules

        """
        self._monitoring = Monitoring(monitored)
Exemple #4
0
    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