def print_output(startend='', passfail='', starttime='', endtime='',
                 msg='', others=''):
    if len(msg) >= 70:
        msg = msg[:67] + '...'
    else:
        msg = msg + ' ' * (70 - len(msg))
    if startend == 'start':
        #output_info = msg + yellow(' | RUNNING |')
        output_info = msg + ' | RUNNING |'
        print '-' * 80
        print output_info
        print 'Starting Time: ', starttime
        print '-' * 80
    if startend == 'end':
        if passfail == 'PASSED':
            output_info = msg + ' | PASSED |'
        else:
            output_info = msg + ' | FAILED |'
        print '-' * 80
        print output_info
        print others
        print 'Starting Time: ', starttime
        print 'End Time:      ', endtime
        print '-' * 80
output the info
dataset/ETHPy150Open idumpling/robotx/robotx/utils/misc.py/print_output