예제 #1
0
 def __init__(self, filename):
     self.plugin_list = PluginList()
     self.filename = filename
     self._finished = False
     if os.path.exists(filename):
         print("Opening file %s" % (filename))
         self.plugin_list._populate_plugin_list(filename, activePass=True)
예제 #2
0
 def __init__(self, filename=None, level='user'):
     self.disp_level = level
     self.plugin_list = PluginList()
     self.plugin_mutations = mutations.plugin_mutations
     self.param_mutations = mutations.param_mutations
     self.filename = filename
     self._finished = False
     self.failed = {}
예제 #3
0
    def __meta_data_setup(self, process_file):
        self.meta_data.plugin_list = PluginList()

        try:
            rtype = self.meta_data.get('run_type')
            if rtype is 'test':
                self.meta_data.plugin_list.plugin_list = \
                    self.meta_data.get('plugin_list')
            else:
                raise Exception('the run_type is unknown in Experiment class')
        except KeyError:
            self.meta_data.plugin_list._populate_plugin_list(process_file)
예제 #4
0
 def get_test_plugin_list(self, process_files, path):
     plugin_names = []
     for pfile in process_files:
         plist = PluginList()
         plist._populate_plugin_list(path + '/' + pfile)
         for p in plist.plugin_list:
             try:
                 plugin_id = p['id']
                 pList = self.add_plugin(plugin_id)
                 for p in pList:
                     plugin_names.append(p + '.py')
             except ImportError as e:
                 print(
                     "Failed to run test as libraries not available (%s)," %
                     (e) + " passing test")
     return list(set(plugin_names))
예제 #5
0
 def __init__(self, filename=None, level='user'):
     self.disp_level = level
     self.plugin_list = PluginList()
     self.filename = filename
     self._finished = False