Exemplo n.º 1
0
        logging.info('Test_Type  : ' + test_type)
        logging.info('Casename   : ' + casename)
        logging.info('Target_mode: ' + target_mode)
        logging.info('Platform   : ' + platform)
        logging.info('Compiler   : ' + compiler)
        logging.info('Debugger   : ' + debugger)
        logging.info('Request_id : ' + request_id)
        logging.info('Remote_bin : ' + remote_bin)
        logging.info('-----------------------------------')

logging.info('------MQX Cloud Test System(run_station)------')
start_time = datetime.datetime.now()
time_result_folder = start_time.strftime('%Y-%m-%d-%H-%M-%S')
logging.info('------Create Task Configuration ---------')
# get runner name
runner_name = Helper.Executor_Name(test_type)
logging.info('---runner---         : %s' % runner_name)
# remote log path
remote_log_path = '/' + 'run_log/' + campaign_id + '/' + request_id + '/' + test_type + '_' + casename + '_' + platform + '_' + debugger + '/'
logging.info('---remote_log_path---: %s' % remote_log_path)
# local bin
local_bin = tmp_path + '/' + request_id + '/' + os.path.basename(remote_bin)
if os.path.exists(os.path.dirname(local_bin)):
    pass
else:
    os.makedirs(os.path.dirname(local_bin))
logging.info('---local bin---      : %s' % local_bin)
# log file
log_file = log_path + '/more/run_station.log'
logging.info('---log_file---       : %s' % log_file)
# config file