print('module health ok.') else: print('abortion failure.') print(ssh_dp_proc.before) raise Exception('abortion failure') #####################<Test procedure>######################## #####set to video mode, check that relative data can be upload successfully interact.set_vworker_mode(conf, ssh_dp_proc, '1st', 'video' ) interact.chk_vworker_mode(conf, ssh_dp_proc, '1st', 'video' ) #####################<check postcondition>######################## ssh_dp_proc.sendline("python check_module_health.py '%s' \"%s\"" % (conf['nodes']['1st']['name'], str(['log', 'config', 'upload', 'sysmon', 'video']))) interact.wait_server(conf, ssh_dp_proc, 'dp') if not(ssh_dp_proc.before.find('failure') == -1): print('postcondition failure: %s' % (ssh_dp_proc)) raise Exception('check_module_health failure') elif not(ssh_dp_proc.before.find('success') == -1): print('module health ok.') else: print('abortion failure.') print(ssh_dp_proc.before)
print('module health ok.') else: print('abortion failure.') print(ssh_dp_proc.before) raise Exception('abortion failure') #####################<Test procedure>######################## #####set to install mode, check that relative data can be upload successfully interact.set_vworker_mode(conf, ssh_dp_proc, '1st', 'install' ) interact.chk_vworker_mode(conf, ssh_dp_proc, '1st', 'install' ) #####set to tracking mode, check that relative data can be upload successfully interact.set_vworker_mode(conf, ssh_dp_proc, '1st', 'tracking' ) interact.chk_vworker_mode(conf, ssh_dp_proc, '1st', 'tracking' ) #####set to loi mode, check that relative data can be upload successfully interact.set_vworker_mode(conf,