def main():
log.configure(level=logging.DEBUG)<EOL>conf_file = DEFAULT_TEST_CONF_FILE<EOL>conf_string = pkgutil.get_data(__name__, conf_file)<EOL>decoder = json.JSONDecoder(strict=False)<EOL>conf = decoder.decode(conf_string)<EOL>parser = argparse.ArgumentParser(description='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>', dest='<STR_LIT>',<EOL>default=conf['<STR_LIT>'])<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>', dest='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>', dest='<STR_LIT>', default=conf['<STR_LIT>'])<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>', dest='<STR_LIT>', default=conf['<STR_LIT>'])<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>', dest='<STR_LIT>', default=conf['<STR_LIT>'])<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>', dest='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>', dest='<STR_LIT>', type=int,<EOL>default=conf['<STR_LIT>'])<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>', dest='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>', dest='<STR_LIT>', default=None)<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>', dest='<STR_LIT>', default=None)<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>', dest='<STR_LIT>',<EOL>default=conf['<STR_LIT>'])<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>', dest='<STR_LIT>', default=<NUM_LIT:1>)<EOL>args, unknown_args = parser.parse_known_args()<EOL>if unknown_args:<EOL><INDENT>logging.error('<STR_LIT>', sys.argv[<NUM_LIT:0>], unknown_args[<NUM_LIT:0>])<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>tests_start_time = int(time.time())<EOL>run_tests(conf, args)<EOL>total = len(failures) + len(successes)<EOL>logging.info("<STR_LIT>" % (int(time.time()) - tests_start_time))<EOL>if not failures:<EOL><INDENT>logging.info("<STR_LIT>", len(successes))<EOL>for test in successes:<EOL><INDENT>logging.info("<STR_LIT>", ("<STR_LIT>" % test[<NUM_LIT:1>]).ljust(<NUM_LIT:8>), test[<NUM_LIT:0>])<EOL><DEDENT>sys.exit(<NUM_LIT:0>)<EOL><DEDENT>else:<EOL><INDENT>logging.error("<STR_LIT>", len(failures), total)<EOL>for test in failures:<EOL><INDENT>logging.error("<STR_LIT>", ("<STR_LIT>" % test[<NUM_LIT:1>]).ljust(<NUM_LIT:8>), test[<NUM_LIT:0>])<EOL><DEDENT>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>
main