コード例 #1
0
ファイル: test.py プロジェクト: henkmuller/sw_avb_dc
 def __init__(self, name, master, controllerType='python', **kwargs):
   Process.__init__(self, name, master, **kwargs)
   self.controllerType = controllerType
   self.discover_active = False
   self.entities = {}
コード例 #2
0
ファイル: test.py プロジェクト: henkmuller/sw_avb_dc
      if self.discover_active:
        lines = data.split('\n')
        for line in lines:
          if line.startswith('C - End Station'):
            self.discover_active = False
            break

          if line.startswith('C '):
            try:
              guid = line.split('|')[2].strip()
              self.entities[int(guid, 16)] = 1
            except Exception, e:
              pass

    Process.outReceived(self, data)


# Assign the xrun variable used to start processes
exe_name = base.exe_name('xrun')
xrun = base.file_abspath(exe_name) # Windows requires the absolute path of xrun

def print_comment(test_step):
  comment = getattr(test_step, 'comment', None)
  if comment is not None:
    log_info("\n>> %s\n" % comment)

def configure_analyzers():
  """ Ensure the analyzers have started properly and then configure their channel
      frequencies as specified in the test configuration file
  """