except: Printc.err(u"Error while creating the test devices {0} : {1}".format( device, traceback.format_exc())) return False, td if __name__ == "__main__": test_folder = os.path.dirname(os.path.realpath(__file__)) ### global variables device = "/dev/rfplayer" timer_status = 30 # set up the features plugin = Plugin(name='test', daemonize=False, parser=None, test=True) # set up the plugin name name = "rfplayer" # set up the configuration of the plugin # configuration is done in test_0010_configure_the_plugin with the cfg content # notice that the old configuration is deleted before cfg = {'configured': True, 'auto_startup': 'N'} # specific configuration for test mdode (handled by the manager for plugin startup) cfg['test_mode'] = True cfg['test_option'] = "{0}/x10_protocol_data.json".format(test_folder) ### start tests # load the test devices class