コード例 #1
0
ファイル: test.py プロジェクト: JerryLX/pantheon
def main():
    args = arg_parser.parse_test()

    try:
        run_tests(args)
    except:  # intended to catch all exceptions
        # dump traceback ahead in case pkill kills the program
        sys.stderr.write(traceback.format_exc())

        if args.pkill_cleanup:
            pkill(args)

        sys.exit('Error in tests!')
    else:
        sys.stderr.write('All tests done!\n')
コード例 #2
0
ファイル: test.py プロジェクト: StanfordLPNG/pantheon
def main():
    args = arg_parser.parse_test()

    try:
        run_tests(args)
    except:  # intended to catch all exceptions
        # dump traceback ahead in case pkill kills the program
        sys.stderr.write(traceback.format_exc())

        if args.pkill_cleanup:
            pkill(args)

        sys.exit('Error in tests!')
    else:
        sys.stderr.write('All tests done!\n')